mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix Just Nimbus error codes (#83856)
This commit is contained in:
@@ -30,4 +30,4 @@ class JustNimbusEntity(
|
|||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
"""Return device availability."""
|
"""Return device availability."""
|
||||||
return super().available and getattr(self.coordinator.data, "error_code") == 0
|
return super().available and self.coordinator.data is not None
|
||||||
|
Reference in New Issue
Block a user