Add device_info to Apple TV entities (#47837)

This commit is contained in:
Pierre Ståhl
2021-03-13 21:39:04 +01:00
committed by GitHub
parent 263023a152
commit 518c86a0ab

View File

@@ -151,6 +151,13 @@ class AppleTVEntity(Entity):
"""No polling needed for Apple TV."""
return False
@property
def device_info(self):
"""Return the device info."""
return {
"identifiers": {(DOMAIN, self._identifier)},
}
class AppleTVManager:
"""Connection and power manager for an Apple TV.