Skip to content
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Versions from 0.40 and up

## Ongoing

- Downstream HA [Core PR](https://github.com/home-assistant/core/pull/138201) update signature of platforms' async_setup_entry

## v0.57.1

- Bugfix for Stretch (Issue #833) via plugwise [v1.7.2](https://github.com/plugwise/python-plugwise/releases/tag/v1.7.2)
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)
from homeassistant.const import EntityCategory
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
BATTERY_STATE,
Expand Down Expand Up @@ -104,7 +104,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise binary_sensors from a config entry."""
coordinator = entry.runtime_data
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from homeassistant.components.button import ButtonDeviceClass, ButtonEntity
from homeassistant.const import EntityCategory
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
LOGGER, # pw-betea
Expand All @@ -21,7 +21,7 @@
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise buttons from a config entry."""
coordinator = entry.runtime_data
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
ACTIVE_PRESET,
Expand Down Expand Up @@ -58,7 +58,7 @@
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise thermostats from a config entry."""
coordinator = entry.runtime_data
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
)
from homeassistant.const import EntityCategory, UnitOfTemperature
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
LOGGER,
Expand Down Expand Up @@ -69,7 +69,7 @@ class PlugwiseNumberEntityDescription(NumberEntityDescription):
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise number platform from a config entry."""
# Upstream above to adhere to standard used
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from homeassistant.components.select import SelectEntity, SelectEntityDescription
from homeassistant.const import STATE_ON, EntityCategory
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
AVAILABLE_SCHEDULES,
Expand Down Expand Up @@ -74,7 +74,7 @@ class PlugwiseSelectEntityDescription(SelectEntityDescription):
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise selector from a config entry."""
coordinator = entry.runtime_data
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
UnitOfVolumeFlowRate,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
DHW_SETPOINT,
Expand Down Expand Up @@ -459,7 +459,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise sensors from a config entry."""
# Upstream as Plugwise not Smile
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)
from homeassistant.const import EntityCategory
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback

from .const import (
COOLING_ENA_SWITCH,
Expand Down Expand Up @@ -72,7 +72,7 @@ class PlugwiseSwitchEntityDescription(SwitchEntityDescription):
async def async_setup_entry(
hass: HomeAssistant,
entry: PlugwiseConfigEntry,
async_add_entities: AddEntitiesCallback,
async_add_entities: AddConfigEntryEntitiesCallback,
) -> None:
"""Set up Plugwise switches from a config entry."""
coordinator = entry.runtime_data
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"sensor",
"switch"
],
"homeassistant": "2025.2.0",
"homeassistant": "2025.3.0",
"render_readme": true
}
Loading