mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Move _attr_should_poll to base Whirlpool entity class (#143100)
This commit is contained in:
parent
9d02436a72
commit
e901dc4ec4
@ -75,7 +75,6 @@ class AirConEntity(WhirlpoolEntity, ClimateEntity):
|
|||||||
_attr_hvac_modes = SUPPORTED_HVAC_MODES
|
_attr_hvac_modes = SUPPORTED_HVAC_MODES
|
||||||
_attr_max_temp = SUPPORTED_MAX_TEMP
|
_attr_max_temp = SUPPORTED_MAX_TEMP
|
||||||
_attr_min_temp = SUPPORTED_MIN_TEMP
|
_attr_min_temp = SUPPORTED_MIN_TEMP
|
||||||
_attr_should_poll = False
|
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
| ClimateEntityFeature.FAN_MODE
|
| ClimateEntityFeature.FAN_MODE
|
||||||
|
@ -12,6 +12,7 @@ class WhirlpoolEntity(Entity):
|
|||||||
"""Base class for Whirlpool entities."""
|
"""Base class for Whirlpool entities."""
|
||||||
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
|
_attr_should_poll = False
|
||||||
|
|
||||||
def __init__(self, appliance: Appliance, unique_id_suffix: str = "") -> None:
|
def __init__(self, appliance: Appliance, unique_id_suffix: str = "") -> None:
|
||||||
"""Initialize the entity."""
|
"""Initialize the entity."""
|
||||||
|
@ -174,8 +174,6 @@ async def async_setup_entry(
|
|||||||
class WhirlpoolSensor(WhirlpoolEntity, SensorEntity):
|
class WhirlpoolSensor(WhirlpoolEntity, SensorEntity):
|
||||||
"""A class for the Whirlpool sensors."""
|
"""A class for the Whirlpool sensors."""
|
||||||
|
|
||||||
_attr_should_poll = False
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, appliance: Appliance, description: WhirlpoolSensorEntityDescription
|
self, appliance: Appliance, description: WhirlpoolSensorEntityDescription
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user