Skip to content

Commit

Permalink
Fix naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
chemwolf6922 committed Dec 19, 2024
1 parent 9eb3bba commit a6bd3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_home/miot/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ async def get_props_async(self, params: list) -> list:
return res_obj['result']


async def get_prop_async(self, did: str, siid: int, piid: int) -> any:
async def __get_prop_async(self, did: str, siid: int, piid: int) -> any:
results = await self.get_props_async(
params=[{'did': did, 'siid': siid, 'piid': piid}])
if not results:
Expand Down Expand Up @@ -685,7 +685,7 @@ async def get_prop_async(
self, did: str, siid: int, piid: int, immediately: bool = False
) -> any:
if immediately:
return await self.get_prop_async(did, siid, piid)
return await self.__get_prop_async(did, siid, piid)
key: str = f'{did}.{siid}.{piid}'
prop_obj = self._get_prop_list.get(key, None)
if prop_obj:
Expand Down

0 comments on commit a6bd3d8

Please sign in to comment.