From c9d381dcd785bcf91b0c48163b8c83e9ca06a483 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Sat, 10 Apr 2021 13:38:58 +0200 Subject: [PATCH] Do not update platform during startup --- sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor.py b/sensor.py index 2a898c2..947692b 100644 --- a/sensor.py +++ b/sensor.py @@ -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']: -- GitLab