Skip to content

Commit

Permalink
🔧 fix for proxy device (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jan 2, 2025
1 parent 5793cdc commit 404f212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ async def get_parent_device(self):
if not (pid := self.info.parent_id):
return None
info = await self.entry.get_cloud_device(pid)
if not info:
return None
return await self.entry.new_device(info)

def miot_mapping(self):
Expand Down

1 comment on commit 404f212

@al-one
Copy link
Owner Author

@al-one al-one commented on 404f212 Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.