From 28efeb9d9e82d0940006f6d96672d660223e15a2 Mon Sep 17 00:00:00 2001 From: Eduard van Valkenburg Date: Sun, 7 May 2023 16:47:02 +0200 Subject: [PATCH] Update deprecated functions in SIA (#92737) update deprecated functions --- homeassistant/components/sia/__init__.py | 2 +- homeassistant/components/sia/hub.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sia/__init__.py b/homeassistant/components/sia/__init__.py index befa2c5df92..a59d1f1cdad 100644 --- a/homeassistant/components/sia/__init__.py +++ b/homeassistant/components/sia/__init__.py @@ -17,7 +17,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.data[DOMAIN][entry.entry_id] = hub try: if hub.sia_client: - await hub.sia_client.start(reuse_port=True) + await hub.sia_client.async_start(reuse_port=True) except OSError as exc: raise ConfigEntryNotReady( f"SIA Server at port {entry.data[CONF_PORT]} could not start." diff --git a/homeassistant/components/sia/hub.py b/homeassistant/components/sia/hub.py index fb8d20e1830..64ca3832ce0 100644 --- a/homeassistant/components/sia/hub.py +++ b/homeassistant/components/sia/hub.py @@ -71,7 +71,7 @@ class SIAHub: async def async_shutdown(self, _: Event | None = None) -> None: """Shutdown the SIA server.""" if self.sia_client: - await self.sia_client.stop() + await self.sia_client.async_stop() async def async_create_and_fire_event(self, event: SIAEvent) -> None: """Create a event on HA dispatcher and then on HA's bus, with the data from the SIAEvent.