Use homeassistant.const instead of integration const for device_info ATTR_ (#53703)

This commit is contained in:
Milan Meulemans
2021-08-02 15:11:41 +02:00
committed by GitHub
parent 4f96f05a75
commit 8ab3d9cc12
20 changed files with 66 additions and 90 deletions

View File

@@ -14,9 +14,6 @@ from homeassistant.components.homekit.accessories import (
from homeassistant.components.homekit.const import (
ATTR_DISPLAY_NAME,
ATTR_INTEGRATION,
ATTR_MANUFACTURER,
ATTR_MODEL,
ATTR_SOFTWARE_VERSION,
ATTR_VALUE,
BRIDGE_MODEL,
BRIDGE_NAME,
@@ -36,7 +33,10 @@ from homeassistant.const import (
ATTR_BATTERY_CHARGING,
ATTR_BATTERY_LEVEL,
ATTR_ENTITY_ID,
ATTR_MANUFACTURER,
ATTR_MODEL,
ATTR_SERVICE,
ATTR_SW_VERSION,
STATE_OFF,
STATE_ON,
STATE_UNAVAILABLE,
@@ -105,7 +105,7 @@ async def test_home_accessory(hass, hk_driver):
{
ATTR_MODEL: "Awesome",
ATTR_MANUFACTURER: "Lux Brands",
ATTR_SOFTWARE_VERSION: "0.4.3",
ATTR_SW_VERSION: "0.4.3",
ATTR_INTEGRATION: "luxe",
},
)