1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-18 12:59:14 +00:00

13 Commits

Author SHA1 Message Date
G Johansson
f9a4840ce2
Group sensor calculate attributes ()
* Group sensor calculate attributes

* Use entity helpers

* Fix sensor tests

* Test change of uom

* Add tests and fix UoM issue

* Fix test

* Fix state class

* repair and logs

* delete issues

* pass through hass

* Update descriotion text to be more descriptive

* Comments

* Add pr to comment

* fix if in updating

* Fix test valid units

* Fix strings

* Fix issues
2024-01-23 08:16:51 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ()
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" ()
Revert "Cache entity properties that are never expected to change in the base class ()"

This reverts commit 042776ebb82924d39ab706f9f3907967a2730eb5.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class () 2023-09-14 17:48:48 -05:00
Erik Montnemery
d282ba6bac
Use a single WS command for group preview ()
* Use a single WS command for group preview

* Fix tests
2023-08-24 11:59:24 +02:00
Erik Montnemery
3c10d0e1f7
Deduplicate entities derived from GroupEntity () 2023-08-23 19:20:58 +02:00
Erik Montnemery
b885dfa5a8
Add preview to sensor group config and option flows () 2023-08-22 10:29:16 +02:00
Marc Mueller
2618bfc073
Use EventType for state changed [core] () 2023-07-23 18:10:03 -05:00
G Johansson
706e8d5612
Add product calculation to Group sensor ()
* Group product

* config flow
2023-03-28 09:35:09 +02:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 () 2023-03-03 11:26:13 +01:00
G Johansson
7aa79415c1
Fix unbound variable in Group sensor ()
* group bound last

* Add test
2023-02-11 16:27:22 +01:00
Franck Nijhof
1b4f4edce2
Don't override icon in sensor group when device class is set () 2023-02-03 16:38:05 +01:00
G Johansson
b3c5c6ae9c
Add sensor to group () 2023-01-24 20:12:27 +01:00