Use enum sensor device class in Litter-Robot (#83290)
This commit is contained in:
parent
d62bdbb9ff
commit
c25ba19ffd
5 changed files with 96 additions and 33 deletions
|
@ -86,7 +86,7 @@ async def test_litter_robot_sensor(
|
|||
assert sensor.attributes["device_class"] == SensorDeviceClass.TIMESTAMP
|
||||
sensor = hass.states.get("sensor.test_status_code")
|
||||
assert sensor.state == "dfs"
|
||||
assert sensor.attributes["device_class"] == "litterrobot__status_code"
|
||||
assert sensor.attributes["device_class"] == SensorDeviceClass.ENUM
|
||||
sensor = hass.states.get("sensor.test_litter_level")
|
||||
assert sensor.state == "70.0"
|
||||
assert sensor.attributes["unit_of_measurement"] == PERCENTAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue