aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()