Debug level logging for DSMR migration code (#104757)

This commit is contained in:
Jan Bouwhuis 2023-11-30 00:32:12 +01:00 committed by Franck Nijhof
parent f366b37c52
commit b4907800a9
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -456,12 +456,12 @@ def rename_old_gas_to_mbus(
device_id=mbus_device_id, device_id=mbus_device_id,
) )
except ValueError: except ValueError:
LOGGER.warning( LOGGER.debug(
"Skip migration of %s because it already exists", "Skip migration of %s because it already exists",
entity.entity_id, entity.entity_id,
) )
else: else:
LOGGER.info( LOGGER.debug(
"Migrated entity %s from unique id %s to %s", "Migrated entity %s from unique id %s to %s",
entity.entity_id, entity.entity_id,
entity.unique_id, entity.unique_id,