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

Move temperature conversions to sensor base class (4/8) (#54472)

* Move temperature conversions to entity base class (4/8)

* Fix litterrobot sensor

* Fix tests
This commit is contained in:
Erik Montnemery
2021-08-11 21:17:47 +02:00
committed by GitHub
parent ae507aeed1
commit 2720ba2753
70 changed files with 195 additions and 183 deletions

View File

@@ -26,6 +26,7 @@ async def test_sleep_time_sensor_with_none_state(hass):
sensor = LitterRobotSleepTimeSensor(
robot, "Sleep Mode Start Time", Mock(), "sleep_mode_start_time"
)
sensor.hass = hass
assert sensor
assert sensor.state is None