Commit Graph

11 Commits (87f284c7e9093522820dc773d25ed0e7eb47b76a)

Author SHA1 Message Date
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
Denis Shulyaka 185aaa9e07
Humidifier current humidity (#94874) 2023-06-20 09:43:33 +02:00
epenet d4bd9a0f7e
Enforce HumidifierEntityFeature (#82459) 2022-11-22 07:14:19 +01:00
epenet 6424c71daa
Cleanup supported_features in demo (#82239)
* Cleanup supported_features in demo cover

* Improve other platforms

* Adjust media_player patch
2022-11-17 09:39:46 +01:00
epenet ff356205bf
Use platform constants from root (#78032) 2022-09-08 12:24:45 +02:00
epenet 02a0b8b649
Add more type hints to demo (#74408) 2022-07-04 20:59:52 +02:00
Franck Nijhof 02dbd617b9
Add EntityFeature enum to Humidifier (#69092) 2022-04-01 20:10:52 +02:00
epenet 9b5939a7a5
Add setup type hints to all demo platforms (#63294)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:24:09 +01:00
Franck Nijhof c6cbfe8c37
Migrate humidifier device classes to StrEnum (#60706)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-12-01 12:02:14 +01:00
Franck Nijhof 32409a2c93
Define HumidifierEntity entity attributes as class variables (#51841) 2021-06-14 09:04:46 -07:00
Shulyaka c28493098a
Add new humidifier entity integration (#28693)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-06-22 17:59:16 -07:00