From e475623c34768352dfe6936f0eec5593e920367c Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 24 Jul 2023 20:06:46 +0200 Subject: setup payload_id ahead of constructor --- ShellyPy/gen2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellyPy/gen2.py b/ShellyPy/gen2.py index e94a1f0..199fb84 100644 --- a/ShellyPy/gen2.py +++ b/ShellyPy/gen2.py @@ -24,9 +24,9 @@ class ShellyGen2(ShellyBase): @param init calls the update method on init """ + self.payload_id = 1 super().__init__(ip, port, *args, **kwargs) self.__generation__ = 2 - self.payload_id = 1 def update(self): status = self.settings() -- cgit v1.2.3