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

@@ -3,12 +3,7 @@ import logging
import re
from typing import Any, Dict, NamedTuple, cast
from kasa.smartdevice import (
DeviceType,
SmartDevice,
SmartDeviceException,
requires_update,
)
from .smartdevice import DeviceType, SmartDevice, SmartDeviceException, requires_update
class ColorTempRange(NamedTuple):