mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user