mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Make every palazzetti entity unavailable if appropriate (#131385)
This commit is contained in:
parent
904c3291d9
commit
f5b2002057
@ -64,11 +64,6 @@ class PalazzettiClimateEntity(PalazzettiEntity, ClimateEntity):
|
|||||||
if client.has_fan_auto:
|
if client.has_fan_auto:
|
||||||
self._attr_fan_modes.append(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
|
@property
|
||||||
def hvac_mode(self) -> HVACMode:
|
def hvac_mode(self) -> HVACMode:
|
||||||
"""Return hvac operation ie. heat or off mode."""
|
"""Return hvac operation ie. heat or off mode."""
|
||||||
|
@ -25,3 +25,8 @@ class PalazzettiEntity(CoordinatorEntity[PalazzettiDataUpdateCoordinator]):
|
|||||||
sw_version=client.sw_version,
|
sw_version=client.sw_version,
|
||||||
hw_version=client.hw_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: |
|
comment: |
|
||||||
This integration does not have configuration.
|
This integration does not have configuration.
|
||||||
docs-installation-parameters: todo
|
docs-installation-parameters: todo
|
||||||
entity-unavailable: todo
|
entity-unavailable: done
|
||||||
integration-owner: done
|
integration-owner: done
|
||||||
log-when-unavailable: done
|
log-when-unavailable: done
|
||||||
parallel-updates: todo
|
parallel-updates: todo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user