Changed SenseDevice trends to use device.energy_kwh[Scale]
Combined or removed duplicate devices created by smart plugs with same names
0.13.0 Device Abstraction With More Stats
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps sense-energy from 0.12.4 to 0.13.2.
Release notes
Sourced from sense-energy's releases.
Commits
6cadfaa
Fix typing21399ec
Remove debug messageseb383b4
Cleanup of duplicate smart plugs3c3107e
Device trends and Python Updates (#68)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show