core/homeassistant/components/humidifier
Denis Shulyaka ae21ab2945
Add `action` attribute to Humidifier entity (#95131)
* Add HumidifierAction StrEnum

* Add action attribute to HumidifierEntity

* Update strings.json

* Add action to demo humidifier

* Add tests

* Fix imports

* Add 'off' humidifier action

* Set action to 'off' when state is 'off'

* Add 'off' action to strings.json

* Test that action sets to "off" when state is "off"

* Use is_on instead of state

* Fix typo

* black
2023-06-28 13:21:17 +02:00
..
__init__.py Add `action` attribute to Humidifier entity (#95131) 2023-06-28 13:21:17 +02:00
const.py Add `action` attribute to Humidifier entity (#95131) 2023-06-28 13:21:17 +02:00
device_action.py Use entity registry id in humidifier device actions (#95270) 2023-06-26 23:08:30 +02:00
device_condition.py Use entity registry id in humidifier device conditions (#95256) 2023-06-26 18:13:48 +02:00
device_trigger.py Add current_humidity device_trigger for humidity component (#95435) 2023-06-28 13:13:55 +02:00
group.py
intent.py
manifest.json
recorder.py
reproduce_state.py
services.yaml
strings.json Add `action` attribute to Humidifier entity (#95131) 2023-06-28 13:21:17 +02:00