Use more state attribute name constants (#40428)
This commit is contained in:
1 parent
f78391ce2a
commit
5e90a4d000
36 files changed
+231
-156
No files matched your search
@@ -6,6 +6,8 @@ from homeassistant.components import zone
|
||||
from homeassistant.components.geofency import CONF_MOBILE_BEACONS, DOMAIN
|
||||
from homeassistant.config import async_process_ha_core_config
|
||||
from homeassistant.const import (
|
||||
ATTR_LATITUDE,
|
||||
ATTR_LONGITUDE,
|
||||
HTTP_OK,
|
||||
HTTP_UNPROCESSABLE_ENTITY,
|
||||
STATE_HOME,
|
||||
@@ -316,5 +318,5 @@ async def test_load_unload_entry(hass, geofency_client, webhook_id):
|
||||
assert state_1 is not state_2
|
||||
|
||||
assert STATE_HOME == state_2.state
|
||||
assert state_2.attributes["latitude"] == HOME_LATITUDE
|
||||
assert state_2.attributes["longitude"] == HOME_LONGITUDE
|
||||
assert state_2.attributes[ATTR_LATITUDE] == HOME_LATITUDE
|
||||
assert state_2.attributes[ATTR_LONGITUDE] == HOME_LONGITUDE
|
||||
Reference in new issue
Block a user