Cleanup implementation of new Sonos sensors (#49716)
This commit is contained in:
parent
9e7d83b2d5
commit
dc50524f32
6 changed files with 35 additions and 47 deletions
|
@ -57,6 +57,5 @@ async def test_battery_attributes(hass, config_entry, config, soco):
|
|||
# confirm initial state from conftest
|
||||
assert battery_state.state == "100"
|
||||
assert battery_state.attributes.get("unit_of_measurement") == "%"
|
||||
assert battery_state.attributes.get("icon") == "mdi:battery-charging-100"
|
||||
assert battery_state.attributes.get("charging")
|
||||
assert battery_state.attributes.get("power_source") == "SONOS_CHARGING_RING"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue