1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-21 03:10:02 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
J. Nick Koston
bb667abd51 Cleanup some circular imports in group () 2024-03-15 15:45:43 -10:00
Marc Mueller
8809d3aa88 Add empty line after module docstring [g-i] () 2024-03-08 08:52:48 -05:00
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
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 042776ebb8.
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
6be20b5408 Add preview support to binary sensor group () 2023-08-23 14:24:48 +02:00
Erik Montnemery
3b16a3e1e0 Small typing fix in binary_sensor group () 2023-08-23 14:04:06 +02:00
Marc Mueller
2618bfc073 Use EventType for state changed [core] () 2023-07-23 18:10:03 -05:00
epenet
4a3c0cd0a8 Adjust docstrings for ruff D404 () 2023-03-03 11:26:13 +01:00
Franck Nijhof
368694d6bf Collection of DeviceClass related typing fixes () 2022-11-29 14:31:25 -05:00
Erik Montnemery
cc8170fcfe Align code between group platforms () 2022-06-28 08:50:31 +02:00
Erik Montnemery
9b8c3e37bb Improve group tests () 2022-06-23 21:38:17 +02:00
Erik Montnemery
5ae48bcf74 Add config flow for binary_sensor group ()
* Add config flow for binary_sensor group

* Address review comments

* Remove device class selection from flow

* Update translation strings
2022-03-10 10:39:51 +01:00
Erik Montnemery
c5dd5e18c0 Improve binary sensor group when member is unknown or unavailable () 2022-03-02 07:53:13 -08:00
epenet
78e92d1662 Adjust pylint plugin to enforce platform type hints ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 18:51:06 +01:00
Erik Montnemery
8bf8709d99 Simplify groups ()
* Simplify group

* Rename async_update to async_update_group_state and mark it as callback

* Simplify _async_start
2022-01-07 08:58:45 +01:00
Robert Hillis
488a636aec Clean up unused loggers () 2021-10-14 10:03:38 -07:00
Erik Montnemery
17efafb2ea Do not set assumed state for binary sensor groups () 2021-09-13 10:40:24 -07:00
Brian Egge
e638e5bb42 Add component for binary sensor groups ()
* Add component for binary sensor groups
https://github.com/home-assistant/home-assistant.io/pull/19239

* Accidental push over prior commit

* Add test for any case

* Add unavailable attribute and tests for unique_id

* Added tests for attributes

link to documentation: https://github.com/home-assistant/home-assistant.io/pull/19297
2021-09-13 15:28:37 +02:00