diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-11-04 23:25:29 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-11-04 23:25:29 +0100 |
commit | 34018b8ffc5659adc4297be0ffd0ec524d9714aa (patch) | |
tree | 1f48b52e1dca64622e2706a22eadda051a255213 | |
parent | b4e1677bc8a4257c039a655db568b83186ae6c2f (diff) | |
download | ShellyPy-34018b8ffc5659adc4297be0ffd0ec524d9714aa.tar.gz ShellyPy-34018b8ffc5659adc4297be0ffd0ec524d9714aa.zip |
Implement meter for base and gen2
-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 = { |