mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix synology_dsm typing (#50399)
This commit is contained in:
parent
b89c53f759
commit
b745d01877
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user