Improve emeterstatus API, move into own module (#205)

Adds the following properties to EmeterStatus for saner API:
* voltage (in V)
* power (in W)
* current (in A)
* total (in kWh)
This commit is contained in:
Teemu R
2021-09-23 17:58:19 +02:00
committed by GitHub
parent 47a1405bd2
commit 36c412a9c2
5 changed files with 88 additions and 53 deletions

View File

@@ -14,10 +14,11 @@ to be handled by the user of the library.
from importlib_metadata import version # type: ignore
from kasa.discover import Discover
from kasa.emeterstatus import EmeterStatus
from kasa.exceptions import SmartDeviceException
from kasa.protocol import TPLinkSmartHomeProtocol
from kasa.smartbulb import SmartBulb
from kasa.smartdevice import DeviceType, EmeterStatus, SmartDevice
from kasa.smartdevice import DeviceType, SmartDevice
from kasa.smartdimmer import SmartDimmer
from kasa.smartlightstrip import SmartLightStrip
from kasa.smartplug import SmartPlug