From 92ff6a4cf11f0935c5a39b1c56790bc775900564 Mon Sep 17 00:00:00 2001 From: Feng Wang Date: Fri, 27 Dec 2024 19:03:26 +0800 Subject: [PATCH] fix typo --- custom_components/xiaomi_home/miot/miot_lan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_home/miot/miot_lan.py b/custom_components/xiaomi_home/miot/miot_lan.py index 600afc1..2e8dc25 100644 --- a/custom_components/xiaomi_home/miot/miot_lan.py +++ b/custom_components/xiaomi_home/miot/miot_lan.py @@ -910,7 +910,7 @@ class MIoTLan: await self.init_async() return self._internal_loop.call_soon_threadsafe( - self.__on_network_info_chnage, + self.__on_network_info_change, _MIoTLanNetworkUpdateData(status=status, if_name=info.name)) async def __on_mips_service_change( @@ -1098,7 +1098,7 @@ class MIoTLan: continue lan_device.on_delete() - def __on_network_info_chnage(self, data: _MIoTLanNetworkUpdateData) -> None: + def __on_network_info_change(self, data: _MIoTLanNetworkUpdateData) -> None: if data.status == InterfaceStatus.ADD: self._available_net_ifs.add(data.if_name) if data.if_name in self._net_ifs: