Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Sep 24, 2024
1 parent 0635c0a commit 32ebd1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ async def async_setup_xiaomi_cloud(hass: hass_core.HomeAssistant, config_entry:
for mac, d in config['devices_by_mac'].items():
device = await entry.new_device(d, cloud)
if not device.spec:
_LOGGER.warning('Xiaomi device: %s has no spec', device.name_model)
_LOGGER.warning('%s: Device has no spec %s', device.name_model, device.info.urn)
continue
conn = device.conn_mode
cfg = {
Expand Down
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/core/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ async def async_get_model_type(hass, model, use_remote=False):

@staticmethod
async def async_from_type(hass, typ):
if not typ:
return None
fnm = f'{DOMAIN}/{typ}.json'
if platform.system() == 'Windows':
fnm = fnm.replace(':', '_')
Expand Down

0 comments on commit 32ebd1a

Please sign in to comment.