Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer blog updates #59

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion custom_components/remeha_home/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ async def async_setup_entry(
class RemehaHomeClimateEntity(CoordinatorEntity, ClimateEntity):
"""Climate entity representing a Remeha Home climate zone."""

_enable_turn_on_off_backwards_compatibility = False
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.PRESET_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_precision = PRECISION_HALVES
Expand Down
4 changes: 2 additions & 2 deletions custom_components/remeha_home/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import async_timeout
from aiohttp.client_exceptions import ClientResponseError

from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from homeassistant.exceptions import ConfigEntryAuthFailed

Expand All @@ -19,7 +19,7 @@
class RemehaHomeUpdateCoordinator(DataUpdateCoordinator):
"""Remeha Home update coordinator."""

def __init__(self, hass: HomeAssistantType, api: RemehaHomeAPI) -> None:
def __init__(self, hass: HomeAssistant, api: RemehaHomeAPI) -> None:
"""Initialize Remeha Home update coordinator."""
super().__init__(
hass,
Expand Down
Loading