1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-24 20:07:23 +00:00
Files
core/tests
Jan Bouwhuis 2e16b7e2df Add numeric_state_expected property to Sensor class (#87013)
* Add is_numeric property to Sensor class

* Follw up comment

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Tests and corrections

* Simplify converion check

* Correct custom device class handling

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* rename to numeric_state_expected

* Replace with new const

* Adjust docstr

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Move to const

* Correct logic

* Do not use bool

* Adjust docstr must be numeric

* remote state from docstr

* protect numeric_state_expected

* Use try_parse_enum for custom class check

* Remove redundant type hints

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-02-01 18:45:13 +01:00
..
2023-01-27 11:10:29 +01:00
2023-01-27 13:57:06 +01:00
2023-01-27 11:10:29 +01:00
2023-02-01 15:00:27 +01:00
2023-01-30 14:06:52 +01:00
2023-01-31 08:48:35 +01:00
2023-01-27 17:14:04 +01:00
2023-01-31 08:48:35 +01:00