We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b678fb commit 4ed138eCopy full SHA for 4ed138e
custom_components/iec/coordinator.py
@@ -454,7 +454,8 @@ async def _update_data(
454
455
devices = await self._get_devices_by_contract_id(contract_id)
456
if not devices:
457
- _LOGGER.debug(f"No devices for contract {contract_id}")
+ _LOGGER.debug(f"No devices for contract {contract_id}. Skipping creating devices.")
458
+ continue
459
460
for device in devices or []:
461
attributes_to_add[METER_ID_ATTR_NAME] = device.device_number
0 commit comments