mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix abode test (#32871)
This commit is contained in:
parent
7ec7306ea8
commit
999c5443c1
@ -2,7 +2,7 @@
|
|||||||
from homeassistant.components.abode import ATTR_DEVICE_ID
|
from homeassistant.components.abode import ATTR_DEVICE_ID
|
||||||
from homeassistant.components.abode.const import ATTRIBUTION
|
from homeassistant.components.abode.const import ATTRIBUTION
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_DOOR,
|
DEVICE_CLASS_WINDOW,
|
||||||
DOMAIN as BINARY_SENSOR_DOMAIN,
|
DOMAIN as BINARY_SENSOR_DOMAIN,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -36,4 +36,4 @@ async def test_attributes(hass):
|
|||||||
assert not state.attributes.get("no_response")
|
assert not state.attributes.get("no_response")
|
||||||
assert state.attributes.get("device_type") == "Door Contact"
|
assert state.attributes.get("device_type") == "Door Contact"
|
||||||
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "Front Door"
|
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "Front Door"
|
||||||
assert state.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_DOOR
|
assert state.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_WINDOW
|
||||||
|
Loading…
x
Reference in New Issue
Block a user