1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add Fritz!DECT 440 humidity sensor (#54597)

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
This commit is contained in:
Julian Löhr
2021-09-30 11:56:38 +02:00
committed by GitHub
parent 4ae887ad34
commit 26042bdad7
4 changed files with 21 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ async def test_setup(hass: HomeAssistant, fritz: Mock):
assert state.attributes[ATTR_UNIT_OF_MEASUREMENT] == TEMP_CELSIUS
assert state.attributes[ATTR_STATE_CLASS] == STATE_CLASS_MEASUREMENT
state = hass.states.get(f"{ENTITY_ID}_humidity")
assert state is None
state = hass.states.get(f"{SENSOR_DOMAIN}.{CONF_FAKE_NAME}_power_consumption")
assert state
assert state.state == "5.678"