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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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