Commit Graph

12 Commits (d25a76d3d6ab19bbcc08412cb85826fc401f9d29)

Author SHA1 Message Date
epenet aadecdf6cb
Add type hints to MediaPlayerEntity (#76743)
* Add media-player checks to pylint plugin

* Fix invalid hints

* Add tests

* Adjust tests

* Add extra test

* Adjust regex

* Cleanup comment

* Revert

* Revert

* Update homeassistant/components/media_player/__init__.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update homeassistant/components/denonavr/media_player.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-08-15 00:54:25 +03:00
Erik Montnemery 9a613aeb96
Modify behavior of media_player groups (#74056) 2022-06-28 10:22:46 +02:00
epenet a3e0a1d04d
Use EntityFeature in group (#69393) 2022-04-06 11:56:05 +02:00
Erik Montnemery 5ae48bcf74
Add config flow for binary_sensor group (#67802)
* 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 a9cc2d2322
Add config flow for cover, fan, light and media_player groups (#67660)
* Add options flow support to HelperConfigFlowHandler

* Add config flow for cover, fan, light and media_player groups

* Update according to review comments

* Update translation strings

* Update translation strings

* Copy schema before adding suggested values
2022-03-07 13:05:04 +01:00
Marc Mueller ac50248938
Add type ignore error codes [other] (#66781) 2022-02-17 23:10:25 -08:00
epenet 29d58e427b
Add setup type hints (part 2) (#63960)
* Add setup type hints to demo

* Add setup type hints to group

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-12 09:28:14 +01:00
Marc Mueller 246338f93d
Use const imports [g-i] (#63468) 2022-01-05 17:08:00 +01:00
Marc Mueller 364767ff22
Import Callable from collections.abc (4) (#56778) 2021-09-29 16:15:36 +02:00
Marc Mueller f5a543b220
Remove deprecated device_state_attributes (#55734) 2021-09-04 13:16:01 -07:00
Franck Nijhof b4a50f5459
Add unique ID support to light, cover and media player groups (#53225) 2021-07-20 13:56:23 +02:00
definitio 132ee972bd
Add media_player.group (#38855)
* Add media group

* Minor improvements

* Use the async api for all methods

* Improve type hints

* Add missing methods

* Add tests

* Rename HomeAssistantType —> HomeAssistant

* Add more tests

* Fix unknown state

* Make some callbacks

* Add more tests

* Fix unknown state properly

* Fix names for callbacks

* Fix stop service test

* Improve tests
2021-06-02 21:25:15 +02:00