diff options
-rw-r--r-- | ShellyPy/base.py | 3 | ||||
-rw-r--r-- | ShellyPy/gen2.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ShellyPy/base.py b/ShellyPy/base.py index 6c64785..505d796 100644 --- a/ShellyPy/base.py +++ b/ShellyPy/base.py @@ -94,6 +94,9 @@ class ShellyBase: def settings(self, subpage = None): raise NotImplementedError("Base Class") + def meter(self, index): + raise NotImplementedError("Base Class") + def relay(self, index, *args, **kwargs): raise NotImplementedError("Base Class") diff --git a/ShellyPy/gen2.py b/ShellyPy/gen2.py index 38824a6..21ffe84 100644 --- a/ShellyPy/gen2.py +++ b/ShellyPy/gen2.py @@ -76,6 +76,9 @@ class ShellyGen2(ShellyBase): def settings(self, subpage = None): return self.post("Sys.GetConfig") + def meter(self, index): + raise NotImplementedError("Unavailable") + def relay(self, index, *args, **kwargs): values = { |