Skip to content
Snippets Groups Projects
Unverified Commit f5b20020 authored by dotvav's avatar dotvav Committed by GitHub
Browse files

Make every palazzetti entity unavailable if appropriate (#131385)

parent 904c3291
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,6 @@ class PalazzettiClimateEntity(PalazzettiEntity, ClimateEntity):
if client.has_fan_auto:
self._attr_fan_modes.append(FAN_AUTO)
@property
def available(self) -> bool:
"""Is the entity available."""
return super().available and self.coordinator.client.connected
@property
def hvac_mode(self) -> HVACMode:
"""Return hvac operation ie. heat or off mode."""
......
......@@ -25,3 +25,8 @@ class PalazzettiEntity(CoordinatorEntity[PalazzettiDataUpdateCoordinator]):
sw_version=client.sw_version,
hw_version=client.hw_version,
)
@property
def available(self) -> bool:
"""Is the entity available."""
return super().available and self.coordinator.client.connected
......@@ -36,7 +36,7 @@ rules:
comment: |
This integration does not have configuration.
docs-installation-parameters: todo
entity-unavailable: todo
entity-unavailable: done
integration-owner: done
log-when-unavailable: done
parallel-updates: todo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment