From bf72e3c9657a668e232dcccff3664970eadd676e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 Jul 2020 18:03:24 -1000 Subject: [PATCH] Update august manufacturer name (#37867) * Update august manufacturer name This allows homekit to link the accessories to the august app * yeah.. update the test --- homeassistant/components/august/const.py | 2 ++ homeassistant/components/august/entity.py | 5 +++-- tests/components/august/test_binary_sensor.py | 2 +- tests/components/august/test_lock.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/august/const.py b/homeassistant/components/august/const.py index e8b8637b6cb..a32e187647a 100644 --- a/homeassistant/components/august/const.py +++ b/homeassistant/components/august/const.py @@ -13,6 +13,8 @@ VERIFICATION_CODE_KEY = "verification_code" NOTIFICATION_ID = "august_notification" NOTIFICATION_TITLE = "August" +MANUFACTURER = "August Home Inc." + DEFAULT_AUGUST_CONFIG_FILE = ".august.conf" DATA_AUGUST = "data_august" diff --git a/homeassistant/components/august/entity.py b/homeassistant/components/august/entity.py index a3f72da44be..1742a00b4e9 100644 --- a/homeassistant/components/august/entity.py +++ b/homeassistant/components/august/entity.py @@ -5,7 +5,8 @@ import logging from homeassistant.core import callback from homeassistant.helpers.entity import Entity -from . import DEFAULT_NAME, DOMAIN +from . import DOMAIN +from .const import MANUFACTURER _LOGGER = logging.getLogger(__name__) @@ -38,7 +39,7 @@ class AugustEntityMixin(Entity): return { "identifiers": {(DOMAIN, self._device_id)}, "name": self._device.device_name, - "manufacturer": DEFAULT_NAME, + "manufacturer": MANUFACTURER, "sw_version": self._detail.firmware_version, "model": self._detail.model, } diff --git a/tests/components/august/test_binary_sensor.py b/tests/components/august/test_binary_sensor.py index 87fc6e5eec9..2112638e619 100644 --- a/tests/components/august/test_binary_sensor.py +++ b/tests/components/august/test_binary_sensor.py @@ -126,5 +126,5 @@ async def test_doorbell_device_registry(hass): ) assert reg_device.model == "hydra1" assert reg_device.name == "tmt100 Name" - assert reg_device.manufacturer == "August" + assert reg_device.manufacturer == "August Home Inc." assert reg_device.sw_version == "3.1.0-HYDRC75+201909251139" diff --git a/tests/components/august/test_lock.py b/tests/components/august/test_lock.py index dfa0edfcb6d..e455960fef3 100644 --- a/tests/components/august/test_lock.py +++ b/tests/components/august/test_lock.py @@ -32,7 +32,7 @@ async def test_lock_device_registry(hass): assert reg_device.model == "AUG-MD01" assert reg_device.sw_version == "undefined-4.3.0-1.8.14" assert reg_device.name == "online_with_doorsense Name" - assert reg_device.manufacturer == "August" + assert reg_device.manufacturer == "August Home Inc." async def test_lock_changed_by(hass):