mirror of
https://github.com/home-assistant/core.git
synced 2025-08-08 07:05:07 +02:00
Fix litterrobot entity typing (#144147)
This commit is contained in:
@@ -17,7 +17,7 @@ from .coordinator import LitterRobotDataUpdateCoordinator
|
||||
_WhiskerEntityT = TypeVar("_WhiskerEntityT", bound=Robot | Pet)
|
||||
|
||||
|
||||
def get_device_info(whisker_entity: _WhiskerEntityT) -> DeviceInfo:
|
||||
def get_device_info(whisker_entity: Robot | Pet) -> DeviceInfo:
|
||||
"""Get device info for a robot or pet."""
|
||||
if isinstance(whisker_entity, Robot):
|
||||
return DeviceInfo(
|
||||
|
Reference in New Issue
Block a user