Skip to content
Snippets Groups Projects
Commit c9d381dc authored by jurgenhaas's avatar jurgenhaas
Browse files

Do not update platform during startup

parent 25b631be
No related branches found
No related tags found
No related merge requests found
Pipeline #494617 skipped
......@@ -86,7 +86,7 @@ class AlertaSensor(Entity):
async def async_update(self):
"""Get the latest data from Alerta API."""
await self.alerta.async_update()
self.alerta.async_update()
self._state = 'ok'
for alert in self.alerta.alerts:
if alert.severity in ['security', 'critical', 'major']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment