diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-07-24 20:06:46 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-07-24 20:06:46 +0200 |
commit | e475623c34768352dfe6936f0eec5593e920367c (patch) | |
tree | d3efbbe6d79588b450d3f50c3143f50db36bf94a | |
parent | 6cd969148afbd0b51ffdc2b12908d75d5fd23ca4 (diff) | |
download | ShellyPy-e475623c34768352dfe6936f0eec5593e920367c.tar.gz ShellyPy-e475623c34768352dfe6936f0eec5593e920367c.zip |
setup payload_id ahead of constructorauth
-rw-r--r-- | ShellyPy/gen2.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |