Bump pylutron to 0.2.13 (#117062)

* Bump pylutron to 0.2.13

* Bump pylutron to 0.2.13
This commit is contained in:
Joost Lekkerkerker 2024-05-08 14:32:23 +02:00 committed by GitHub
parent d9ad0c101b
commit b54077026a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 10 deletions

View file

@ -75,13 +75,7 @@ class LutronEventEntity(LutronKeypad, EventEntity):
async def async_added_to_hass(self) -> None:
"""Register callbacks."""
await super().async_added_to_hass()
self._lutron_device.subscribe(self.handle_event, None)
async def async_will_remove_from_hass(self) -> None:
"""Unregister callbacks."""
await super().async_will_remove_from_hass()
# Temporary solution until https://github.com/thecynic/pylutron/pull/93 gets merged
self._lutron_device._subscribers.remove((self.handle_event, None)) # noqa: SLF001
self.async_on_remove(self._lutron_device.subscribe(self.handle_event, None))
@callback
def handle_event(

View file

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/lutron",
"iot_class": "local_polling",
"loggers": ["pylutron"],
"requirements": ["pylutron==0.2.12"]
"requirements": ["pylutron==0.2.13"]
}

View file

@ -1959,7 +1959,7 @@ pylitterbot==2023.5.0
pylutron-caseta==0.20.0
# homeassistant.components.lutron
pylutron==0.2.12
pylutron==0.2.13
# homeassistant.components.mailgun
pymailgunner==1.4

View file

@ -1534,7 +1534,7 @@ pylitterbot==2023.5.0
pylutron-caseta==0.20.0
# homeassistant.components.lutron
pylutron==0.2.12
pylutron==0.2.13
# homeassistant.components.mailgun
pymailgunner==1.4