You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
sense.devices now returns a list of SenseDevices containing attributes name, icon, is_on, power_w, and trend stats daily_kwh, weekly_kwh, monthly_kwh, yearly_kwh
Scale enum added with values DAY, WEEK, MONTH, YEAR, and CYCLE. These replace the previous string values that can would passed to the get_trend function (or anything that took a scale).
Added sense.get_stat(self, scale: Scale, key: str) -> float function similar to get_trend
Updated Python minimum version to Python 3.9
Added async function sense.fetch_devices() -> None to fetch discovered device data