Take into account coordinator availability for SamsungTV (#144545)

This commit is contained in:
Simone Chemelli 2025-05-11 20:38:53 +03:00 committed by GitHub
parent ea4120a7d4
commit 867624fc59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ class SamsungTVEntity(CoordinatorEntity[SamsungTVDataUpdateCoordinator], Entity)
@property
def available(self) -> bool:
"""Return the availability of the device."""
if self._bridge.auth_failed:
if not super().available or self._bridge.auth_failed:
return False
return (
self.coordinator.is_on