move get_time{zone} out from smartdevice + some minor cleanups

This commit is contained in:
Teemu Rytilahti
2022-01-29 20:36:08 +01:00
committed by Teemu R
parent c8ad99abcb
commit f0d66e4195
5 changed files with 35 additions and 46 deletions

View File

@@ -39,7 +39,6 @@ class SmartPlug(SmartDevice):
def __init__(self, host: str) -> None:
super().__init__(host)
self.emeter_type = "emeter"
self._device_type = DeviceType.Plug
self.add_module("schedule", Schedule(self, "schedule"))
self.add_module("usage", Usage(self, "schedule"))