Expose LitterHopper status for LR4 (#143684)

* Expose LitterHopper status for LR4

* Proper naming and icons

* Add simple tests

* fix test: lowercase enabled

* over-torque, not OT

* Don't use icon_fn for simple state map

* short not Short

* Better state names
This commit is contained in:
Justin Bull
2025-04-30 13:41:05 -04:00
committed by GitHub
parent 30656a4e72
commit e05f7a9633
7 changed files with 98 additions and 7 deletions

View File

@@ -114,3 +114,12 @@ async def test_pet_weight_sensor(
sensor = hass.states.get("sensor.kitty_weight")
assert sensor.state == "9.1"
assert sensor.attributes["unit_of_measurement"] == UnitOfMass.POUNDS
async def test_litterhopper_sensor(
hass: HomeAssistant, mock_account_with_litterhopper: MagicMock
) -> None:
"""Tests LitterHopper sensors."""
await setup_integration(hass, mock_account_with_litterhopper, PLATFORM_DOMAIN)
sensor = hass.states.get("sensor.test_hopper_status")
assert sensor.state == "enabled"