@@ -362,7 +362,10 @@ def __init__(self, coordinator: ShellyBlockCoordinator, block: Block) -> None:
362362 self .block = block
363363 self ._attr_name = get_block_entity_name (coordinator .device , block )
364364 self ._attr_device_info = get_block_device_info (
365- coordinator .device , coordinator .mac , block
365+ coordinator .device ,
366+ coordinator .mac ,
367+ block ,
368+ suggested_area = coordinator .suggested_area ,
366369 )
367370 self ._attr_unique_id = f"{ coordinator .mac } -{ block .description } "
368371
@@ -405,7 +408,10 @@ def __init__(self, coordinator: ShellyRpcCoordinator, key: str) -> None:
405408 super ().__init__ (coordinator )
406409 self .key = key
407410 self ._attr_device_info = get_rpc_device_info (
408- coordinator .device , coordinator .mac , key
411+ coordinator .device ,
412+ coordinator .mac ,
413+ key ,
414+ suggested_area = coordinator .suggested_area ,
409415 )
410416 self ._attr_unique_id = f"{ coordinator .mac } -{ key } "
411417 self ._attr_name = get_rpc_entity_name (coordinator .device , key )
@@ -521,7 +527,9 @@ def __init__(
521527 )
522528 self ._attr_unique_id = f"{ coordinator .mac } -{ attribute } "
523529 self ._attr_device_info = get_block_device_info (
524- coordinator .device , coordinator .mac
530+ coordinator .device ,
531+ coordinator .mac ,
532+ suggested_area = coordinator .suggested_area ,
525533 )
526534 self ._last_value = None
527535
@@ -630,7 +638,10 @@ def __init__(
630638 self .entity_description = description
631639
632640 self ._attr_device_info = get_block_device_info (
633- coordinator .device , coordinator .mac , block
641+ coordinator .device ,
642+ coordinator .mac ,
643+ block ,
644+ suggested_area = coordinator .suggested_area ,
634645 )
635646
636647 if block is not None :
@@ -698,7 +709,10 @@ def __init__(
698709 self .entity_description = description
699710
700711 self ._attr_device_info = get_rpc_device_info (
701- coordinator .device , coordinator .mac , key
712+ coordinator .device ,
713+ coordinator .mac ,
714+ key ,
715+ suggested_area = coordinator .suggested_area ,
702716 )
703717 self ._attr_unique_id = self ._attr_unique_id = (
704718 f"{ coordinator .mac } -{ key } -{ attribute } "
0 commit comments