When using whitespace in attributes the lookup of the state attribute fails because an entity with whitespace in its name cannot be found.
Works:
entity_id|state_attribute
Does not work:
entity_id | state_attribute
Fixes#53804
* Move temperature conversions to entity base class (1/8)
* Update integrations a-c
* Leave old temperature conversion until all integrations are migrated
* tweak
* Use contextlib.suppress
* Remove the MeasurableUnitEntity mixin
* Address comments, add tests
* Fix f-string
* Drop deprecation warning from base entity class
* Update with _attr-shorthand
* Fix rebase mistakes
* Fix additional rebase mistakes
* Only report temperature conversion once
* Fix additional rebase mistakes
* Format homeassistant/components/bbox/sensor.py
* Fix check for overidden _attr_state
* Remove test workarounds from implementation
* Remove useless None-check
* Tweaks
* Migrate new sensors a-c
* Update climacell
* Push deprecation of temperature conversion forward
* Override __repr__ in SensorEntity
* Include native_value in SensorEntity attributes
* Pylint
* Black
* Black
* Fix rebase mistakes
* black
* Fix rebase mistakes
* Revert changes in august/sensor.py
* Revert handling of unit converted restored state
* Apply code review suggestion
* Fix arlo test
* Add 100% test coverage for Uptime Robot
* Update tests/components/uptimerobot/test_binary_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add more typehints
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* init coordinator for airpurifiers and airfresh
* Update fan entities with coordinator
* cache mode and fan_level at user update
* pylint define attributes in _init
* Update homeassistant/components/xiaomi_miio/fan.py
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
* Update homeassistant/components/xiaomi_miio/fan.py
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
* Update homeassistant/components/xiaomi_miio/fan.py
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
* cleanup code
* Set hass.data[DATA_KEY] to enable
* rename to filtered_entities in service handler
* Update homeassistant/components/xiaomi_miio/fan.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* flake
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>