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 requested
pull/98294/head
Bouwe Westerdijk 2023-08-12 09:56:23 +02:00 committed by GitHub
parent 8b99d4678f
commit 5042c25bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -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."""