From 34018b8ffc5659adc4297be0ffd0ec524d9714aa Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 4 Nov 2022 23:25:29 +0100 Subject: Implement meter for base and gen2 --- ShellyPy/base.py | 3 +++ ShellyPy/gen2.py | 3 +++ 2 files changed, 6 insertions(+) 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 = { -- cgit v1.2.3