aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-07-24 20:06:46 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-07-24 20:06:46 +0200
commite475623c34768352dfe6936f0eec5593e920367c (patch)
treed3efbbe6d79588b450d3f50c3143f50db36bf94a
parent6cd969148afbd0b51ffdc2b12908d75d5fd23ca4 (diff)
downloadShellyPy-e475623c34768352dfe6936f0eec5593e920367c.tar.gz
ShellyPy-e475623c34768352dfe6936f0eec5593e920367c.zip
setup payload_id ahead of constructorauth
-rw-r--r--ShellyPy/gen2.py2
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()