Bump AIOAladdinConnect to 0.1.27 (#75400)
This commit is contained in:
parent
e75d7dfb75
commit
983bcfa935
7 changed files with 14 additions and 6 deletions
|
@ -89,6 +89,7 @@ class AladdinDevice(CoverEntity):
|
|||
self._device_id = device["device_id"]
|
||||
self._number = device["door_number"]
|
||||
self._name = device["name"]
|
||||
self._serial = device["serial"]
|
||||
self._attr_unique_id = f"{self._device_id}-{self._number}"
|
||||
self._attr_has_entity_name = True
|
||||
|
||||
|
@ -108,8 +109,8 @@ class AladdinDevice(CoverEntity):
|
|||
"""Schedule a state update."""
|
||||
self.async_write_ha_state()
|
||||
|
||||
self._acc.register_callback(update_callback, self._number)
|
||||
await self._acc.get_doors(self._number)
|
||||
self._acc.register_callback(update_callback, self._serial)
|
||||
await self._acc.get_doors(self._serial)
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
"""Close Aladdin Connect before removing."""
|
||||
|
@ -125,7 +126,7 @@ class AladdinDevice(CoverEntity):
|
|||
|
||||
async def async_update(self) -> None:
|
||||
"""Update status of cover."""
|
||||
await self._acc.get_doors(self._number)
|
||||
await self._acc.get_doors(self._serial)
|
||||
|
||||
@property
|
||||
def is_closed(self) -> bool | None:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"domain": "aladdin_connect",
|
||||
"name": "Aladdin Connect",
|
||||
"documentation": "https://www.home-assistant.io/integrations/aladdin_connect",
|
||||
"requirements": ["AIOAladdinConnect==0.1.25"],
|
||||
"requirements": ["AIOAladdinConnect==0.1.27"],
|
||||
"codeowners": ["@mkmer"],
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["aladdin_connect"],
|
||||
|
|
|
@ -11,3 +11,4 @@ class DoorDevice(TypedDict):
|
|||
door_number: int
|
||||
name: str
|
||||
status: str
|
||||
serial: str
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
AEMET-OpenData==0.2.1
|
||||
|
||||
# homeassistant.components.aladdin_connect
|
||||
AIOAladdinConnect==0.1.25
|
||||
AIOAladdinConnect==0.1.27
|
||||
|
||||
# homeassistant.components.adax
|
||||
Adax-local==0.1.4
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
AEMET-OpenData==0.2.1
|
||||
|
||||
# homeassistant.components.aladdin_connect
|
||||
AIOAladdinConnect==0.1.25
|
||||
AIOAladdinConnect==0.1.27
|
||||
|
||||
# homeassistant.components.adax
|
||||
Adax-local==0.1.4
|
||||
|
|
|
@ -10,6 +10,7 @@ DEVICE_CONFIG_OPEN = {
|
|||
"name": "home",
|
||||
"status": "open",
|
||||
"link_status": "Connected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ DEVICE_CONFIG_OPEN = {
|
|||
"name": "home",
|
||||
"status": "open",
|
||||
"link_status": "Connected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_OPENING = {
|
||||
|
@ -41,6 +42,7 @@ DEVICE_CONFIG_OPENING = {
|
|||
"name": "home",
|
||||
"status": "opening",
|
||||
"link_status": "Connected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_CLOSED = {
|
||||
|
@ -49,6 +51,7 @@ DEVICE_CONFIG_CLOSED = {
|
|||
"name": "home",
|
||||
"status": "closed",
|
||||
"link_status": "Connected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_CLOSING = {
|
||||
|
@ -57,6 +60,7 @@ DEVICE_CONFIG_CLOSING = {
|
|||
"name": "home",
|
||||
"status": "closing",
|
||||
"link_status": "Connected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_DISCONNECTED = {
|
||||
|
@ -65,6 +69,7 @@ DEVICE_CONFIG_DISCONNECTED = {
|
|||
"name": "home",
|
||||
"status": "open",
|
||||
"link_status": "Disconnected",
|
||||
"serial": "12345",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_BAD = {
|
||||
|
|
Loading…
Add table
Reference in a new issue