Move _attr_should_poll to base Whirlpool entity class (#143100)

This commit is contained in:
Abílio Costa 2025-04-16 19:43:38 +01:00 committed by GitHub
parent 9d02436a72
commit e901dc4ec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 3 deletions

View File

@ -75,7 +75,6 @@ class AirConEntity(WhirlpoolEntity, ClimateEntity):
_attr_hvac_modes = SUPPORTED_HVAC_MODES
_attr_max_temp = SUPPORTED_MAX_TEMP
_attr_min_temp = SUPPORTED_MIN_TEMP
_attr_should_poll = False
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE

View File

@ -12,6 +12,7 @@ class WhirlpoolEntity(Entity):
"""Base class for Whirlpool entities."""
_attr_has_entity_name = True
_attr_should_poll = False
def __init__(self, appliance: Appliance, unique_id_suffix: str = "") -> None:
"""Initialize the entity."""

View File

@ -174,8 +174,6 @@ async def async_setup_entry(
class WhirlpoolSensor(WhirlpoolEntity, SensorEntity):
"""A class for the Whirlpool sensors."""
_attr_should_poll = False
def __init__(
self, appliance: Appliance, description: WhirlpoolSensorEntityDescription
) -> None: