Fix synology_dsm typing (#50399)

This commit is contained in:
Ruslan Sayfutdinov
2021-05-10 12:43:43 +01:00
committed by GitHub
parent b89c53f759
commit b745d01877

View File

@ -205,7 +205,7 @@ async def async_setup_entry( # noqa: C901
for device in devices: for device in devices:
old_identifier = list(next(iter(device.identifiers))) old_identifier = list(next(iter(device.identifiers)))
if len(old_identifier) > 2: if len(old_identifier) > 2:
new_identifier: set[tuple[str, ...]] = { new_identifier = {
(old_identifier.pop(0), "_".join([str(x) for x in old_identifier])) (old_identifier.pop(0), "_".join([str(x) for x in old_identifier]))
} }
_LOGGER.debug( _LOGGER.debug(