From d5b5db07ad390b37d97464fb8f138b2ec4fae54a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Sun, 16 Oct 2022 20:35:17 +0200 Subject: [PATCH] Poll state on connect --- custom_components/plejd/pyplejd/mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/plejd/pyplejd/mesh.py b/custom_components/plejd/pyplejd/mesh.py index d330b2f..1a81cee 100644 --- a/custom_components/plejd/pyplejd/mesh.py +++ b/custom_components/plejd/pyplejd/mesh.py @@ -103,6 +103,8 @@ class PlejdMesh(): await client.start_notify(PLEJD_LASTDATA, _lastdata) await client.start_notify(PLEJD_LIGHTLEVEL, _lightlevel) + await self.poll() + return True async def write(self, payload):