Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Sep 28, 2024
1 parent 55b9d22 commit 5bb200e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/xiaomi_miot/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ def miot_mapping(self):
if self._miot_mapping:
return self._miot_mapping

if not self.spec:
return None

if dic := self.custom_config_json('miot_mapping'):
self.spec.set_custom_mapping(dic)
self._miot_mapping = dic
Expand Down

0 comments on commit 5bb200e

Please sign in to comment.