mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +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."""
|
"""Fritz entity base description."""
|
||||||
|
|
||||||
|
|
||||||
class FritzBoxBaseCoordinatorEntity(update_coordinator.CoordinatorEntity):
|
class FritzBoxBaseCoordinatorEntity(update_coordinator.CoordinatorEntity[AvmWrapper]):
|
||||||
"""Fritz host coordinator entity base class."""
|
"""Fritz host coordinator entity base class."""
|
||||||
|
|
||||||
coordinator: AvmWrapper
|
|
||||||
entity_description: FritzEntityDescription
|
entity_description: FritzEntityDescription
|
||||||
_attr_has_entity_name = True
|
_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."""
|
"""Fritz switch coordinator base class."""
|
||||||
|
|
||||||
coordinator: AvmWrapper
|
|
||||||
entity_description: SwitchEntityDescription
|
entity_description: SwitchEntityDescription
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user