Plugwise climate: remove extra_state_attributes property (#98153)
* Remove extra_state_attributes property, replaced by a number * Support HVAC_Mode in set_temperature() * Remove set_temperature() update, as requestedpull/98294/head
parent
8b99d4678f
commit
5042c25bbc
|
@ -1,7 +1,6 @@
|
|||
"""Plugwise Climate component for Home Assistant."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from homeassistant.components.climate import (
|
||||
|
@ -145,14 +144,6 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
|
|||
"""Return the current preset mode."""
|
||||
return self.device.get("active_preset")
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self) -> Mapping[str, Any] | None:
|
||||
"""Return entity specific state attributes."""
|
||||
return {
|
||||
"available_schemas": self.device["available_schedules"],
|
||||
"selected_schema": self.device["select_schedule"],
|
||||
}
|
||||
|
||||
@plugwise_command
|
||||
async def async_set_temperature(self, **kwargs: Any) -> None:
|
||||
"""Set new target temperature."""
|
||||
|
|
Loading…
Reference in New Issue