mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Improve fritz generic typing (#92327)
This commit is contained in:
parent
324df197d1
commit
d66056cfab
@ -1049,10 +1049,9 @@ class FritzEntityDescription(EntityDescription, FritzRequireKeysMixin):
|
||||
"""Fritz entity base description."""
|
||||
|
||||
|
||||
class FritzBoxBaseCoordinatorEntity(update_coordinator.CoordinatorEntity):
|
||||
class FritzBoxBaseCoordinatorEntity(update_coordinator.CoordinatorEntity[AvmWrapper]):
|
||||
"""Fritz host coordinator entity base class."""
|
||||
|
||||
coordinator: AvmWrapper
|
||||
entity_description: FritzEntityDescription
|
||||
_attr_has_entity_name = True
|
||||
|
||||
|
@ -256,10 +256,9 @@ async def async_setup_entry(
|
||||
)
|
||||
|
||||
|
||||
class FritzBoxBaseCoordinatorSwitch(CoordinatorEntity, SwitchEntity):
|
||||
class FritzBoxBaseCoordinatorSwitch(CoordinatorEntity[AvmWrapper], SwitchEntity):
|
||||
"""Fritz switch coordinator base class."""
|
||||
|
||||
coordinator: AvmWrapper
|
||||
entity_description: SwitchEntityDescription
|
||||
_attr_has_entity_name = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user