Fix august configuration url with Yale Home brand (#93361)
* Fix august configuration url with Yale Home brand changelog: https://github.com/bdraco/yalexs/compare/v1.4.6...v1.5.0 * bump
This commit is contained in:
parent
a81fe517c1
commit
5d02be5d7f
5 changed files with 11 additions and 5 deletions
|
@ -142,6 +142,11 @@ class AugustData(AugustSubscriberMixin):
|
|||
self._house_ids: set[str] = set()
|
||||
self._pubnub_unsub: CALLBACK_TYPE | None = None
|
||||
|
||||
@property
|
||||
def brand(self) -> str:
|
||||
"""Brand of the device."""
|
||||
return self._config_entry.data.get(CONF_BRAND, DEFAULT_BRAND)
|
||||
|
||||
async def async_setup(self):
|
||||
"""Async setup of august device data and activities."""
|
||||
token = self._august_gateway.access_token
|
||||
|
@ -194,7 +199,7 @@ class AugustData(AugustSubscriberMixin):
|
|||
self._pubnub_unsub = async_create_pubnub(
|
||||
user_data["UserID"],
|
||||
pubnub,
|
||||
self._config_entry.data.get(CONF_BRAND, DEFAULT_BRAND),
|
||||
self.brand,
|
||||
)
|
||||
|
||||
if self._locks_by_id:
|
||||
|
|
|
@ -3,6 +3,7 @@ from abc import abstractmethod
|
|||
|
||||
from yalexs.doorbell import Doorbell
|
||||
from yalexs.lock import Lock
|
||||
from yalexs.util import get_configuration_url
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.entity import DeviceInfo, Entity
|
||||
|
@ -30,7 +31,7 @@ class AugustEntityMixin(Entity):
|
|||
name=device.device_name,
|
||||
sw_version=self._detail.firmware_version,
|
||||
suggested_area=_remove_device_types(device.device_name, DEVICE_TYPES),
|
||||
configuration_url="https://account.august.com",
|
||||
configuration_url=get_configuration_url(data.brand),
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
@ -28,5 +28,5 @@
|
|||
"documentation": "https://www.home-assistant.io/integrations/august",
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["pubnub", "yalexs"],
|
||||
"requirements": ["yalexs==1.4.6", "yalexs-ble==2.1.17"]
|
||||
"requirements": ["yalexs==1.5.1", "yalexs-ble==2.1.17"]
|
||||
}
|
||||
|
|
|
@ -2697,7 +2697,7 @@ yalesmartalarmclient==0.3.9
|
|||
yalexs-ble==2.1.17
|
||||
|
||||
# homeassistant.components.august
|
||||
yalexs==1.4.6
|
||||
yalexs==1.5.1
|
||||
|
||||
# homeassistant.components.yeelight
|
||||
yeelight==0.7.10
|
||||
|
|
|
@ -1964,7 +1964,7 @@ yalesmartalarmclient==0.3.9
|
|||
yalexs-ble==2.1.17
|
||||
|
||||
# homeassistant.components.august
|
||||
yalexs==1.4.6
|
||||
yalexs==1.5.1
|
||||
|
||||
# homeassistant.components.yeelight
|
||||
yeelight==0.7.10
|
||||
|
|
Loading…
Add table
Reference in a new issue