Commit Graph

6 Commits

Author SHA1 Message Date
Ryan Nitcher
1c250913b6 Rename current_consumption to power
- Note: This is a breaking change.
- Fix: Rename `current_consumption` to `power` in energy modules, to deconflict and clarify.
- Fix: Report `0` instead of `None` for current when current is zero.
- Fix: Report `0` instead of `None` for voltage when voltage is zero (not that this was possible to see).
2024-12-06 20:48:16 -07:00
Teemu R.
fcb604e435 Follow main package structure for tests (#1317)
* Transport tests under tests/transports/
* Protocol tests under tests/protocols/
* IOT tests under iot/
* Plus some minor cleanups, most code changes are related to splitting
up smart & iot tests
2024-11-28 17:56:20 +01:00
Steven B.
412c65c428 Run tests with caplog in a single worker (#1304) 2024-11-23 12:20:51 +00:00
Steven B.
f7778aaa53 Migrate RuleModule to mashumaro (#1283)
Also fixes a bug whereby multiple queries for the same module would overwrite each other.
2024-11-20 14:59:32 +00:00
Steven B.
5eca487bcb Migrate iot cloud module to mashumaro (#1282)
Breaking change as the CloudInfo interface is changing to snake case for
consistency with the rest of the library.
2024-11-20 14:34:26 +01:00
Steven B.
32671da9e9 Move tests folder to top level of project (#1242) 2024-11-11 10:11:31 +00:00