Do not restore unavailable state for august locks (#44722)

This commit is contained in:
J. Nick Koston
2021-01-01 01:44:53 -10:00
committed by GitHub
parent 681f76b99d
commit 94825b3e15
4 changed files with 16 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
"""The sensor tests for the august platform."""
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, PERCENTAGE, STATE_UNAVAILABLE
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, PERCENTAGE, STATE_UNKNOWN
from tests.components.august.mocks import (
_create_august_with_devices,
@@ -120,7 +120,7 @@ async def test_create_lock_with_low_battery_linked_keypad(hass):
)
assert (
hass.states.get("sensor.a6697750d607098bae8d6baa11ef8063_name_operator").state
== STATE_UNAVAILABLE
== STATE_UNKNOWN
)