File tree Expand file tree Collapse file tree 9 files changed +19
-15
lines changed
custom_components/plugwise Expand file tree Collapse file tree 9 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Versions from 0.40 and up
4
4
5
+ ## Ongoing
6
+
7
+ - Downstream HA [ Core PR] ( https://github.com/home-assistant/core/pull/138201 ) update signature of platforms' async_setup_entry
8
+
5
9
## v0.57.1
6
10
7
11
- Bugfix for Stretch (Issue #833 ) via plugwise [ v1.7.2] ( https://github.com/plugwise/python-plugwise/releases/tag/v1.7.2 )
Original file line number Diff line number Diff line change 18
18
)
19
19
from homeassistant .const import EntityCategory
20
20
from homeassistant .core import HomeAssistant , callback
21
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
21
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
22
22
23
23
from .const import (
24
24
BATTERY_STATE ,
@@ -104,7 +104,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
104
104
async def async_setup_entry (
105
105
hass : HomeAssistant ,
106
106
entry : PlugwiseConfigEntry ,
107
- async_add_entities : AddEntitiesCallback ,
107
+ async_add_entities : AddConfigEntryEntitiesCallback ,
108
108
) -> None :
109
109
"""Set up Plugwise binary_sensors from a config entry."""
110
110
coordinator = entry .runtime_data
Original file line number Diff line number Diff line change 5
5
from homeassistant .components .button import ButtonDeviceClass , ButtonEntity
6
6
from homeassistant .const import EntityCategory
7
7
from homeassistant .core import HomeAssistant
8
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
8
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
9
9
10
10
from .const import (
11
11
LOGGER , # pw-betea
21
21
async def async_setup_entry (
22
22
hass : HomeAssistant ,
23
23
entry : PlugwiseConfigEntry ,
24
- async_add_entities : AddEntitiesCallback ,
24
+ async_add_entities : AddConfigEntryEntitiesCallback ,
25
25
) -> None :
26
26
"""Set up Plugwise buttons from a config entry."""
27
27
coordinator = entry .runtime_data
Original file line number Diff line number Diff line change 24
24
)
25
25
from homeassistant .core import HomeAssistant , callback
26
26
from homeassistant .exceptions import HomeAssistantError
27
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
27
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
28
28
29
29
from .const import (
30
30
ACTIVE_PRESET ,
58
58
async def async_setup_entry (
59
59
hass : HomeAssistant ,
60
60
entry : PlugwiseConfigEntry ,
61
- async_add_entities : AddEntitiesCallback ,
61
+ async_add_entities : AddConfigEntryEntitiesCallback ,
62
62
) -> None :
63
63
"""Set up Plugwise thermostats from a config entry."""
64
64
coordinator = entry .runtime_data
Original file line number Diff line number Diff line change 12
12
)
13
13
from homeassistant .const import EntityCategory , UnitOfTemperature
14
14
from homeassistant .core import HomeAssistant , callback
15
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
15
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
16
16
17
17
from .const import (
18
18
LOGGER ,
@@ -69,7 +69,7 @@ class PlugwiseNumberEntityDescription(NumberEntityDescription):
69
69
async def async_setup_entry (
70
70
hass : HomeAssistant ,
71
71
entry : PlugwiseConfigEntry ,
72
- async_add_entities : AddEntitiesCallback ,
72
+ async_add_entities : AddConfigEntryEntitiesCallback ,
73
73
) -> None :
74
74
"""Set up Plugwise number platform from a config entry."""
75
75
# Upstream above to adhere to standard used
Original file line number Diff line number Diff line change 7
7
from homeassistant .components .select import SelectEntity , SelectEntityDescription
8
8
from homeassistant .const import STATE_ON , EntityCategory
9
9
from homeassistant .core import HomeAssistant , callback
10
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
10
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
11
11
12
12
from .const import (
13
13
AVAILABLE_SCHEDULES ,
@@ -74,7 +74,7 @@ class PlugwiseSelectEntityDescription(SelectEntityDescription):
74
74
async def async_setup_entry (
75
75
hass : HomeAssistant ,
76
76
entry : PlugwiseConfigEntry ,
77
- async_add_entities : AddEntitiesCallback ,
77
+ async_add_entities : AddConfigEntryEntitiesCallback ,
78
78
) -> None :
79
79
"""Set up Plugwise selector from a config entry."""
80
80
coordinator = entry .runtime_data
Original file line number Diff line number Diff line change 26
26
UnitOfVolumeFlowRate ,
27
27
)
28
28
from homeassistant .core import HomeAssistant , callback
29
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
29
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
30
30
31
31
from .const import (
32
32
DHW_SETPOINT ,
@@ -459,7 +459,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
459
459
async def async_setup_entry (
460
460
hass : HomeAssistant ,
461
461
entry : PlugwiseConfigEntry ,
462
- async_add_entities : AddEntitiesCallback ,
462
+ async_add_entities : AddConfigEntryEntitiesCallback ,
463
463
) -> None :
464
464
"""Set up Plugwise sensors from a config entry."""
465
465
# Upstream as Plugwise not Smile
Original file line number Diff line number Diff line change 14
14
)
15
15
from homeassistant .const import EntityCategory
16
16
from homeassistant .core import HomeAssistant , callback
17
- from homeassistant .helpers .entity_platform import AddEntitiesCallback
17
+ from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
18
18
19
19
from .const import (
20
20
COOLING_ENA_SWITCH ,
@@ -72,7 +72,7 @@ class PlugwiseSwitchEntityDescription(SwitchEntityDescription):
72
72
async def async_setup_entry (
73
73
hass : HomeAssistant ,
74
74
entry : PlugwiseConfigEntry ,
75
- async_add_entities : AddEntitiesCallback ,
75
+ async_add_entities : AddConfigEntryEntitiesCallback ,
76
76
) -> None :
77
77
"""Set up Plugwise switches from a config entry."""
78
78
coordinator = entry .runtime_data
Original file line number Diff line number Diff line change 9
9
" sensor" ,
10
10
" switch"
11
11
],
12
- "homeassistant" : " 2025.2 .0" ,
12
+ "homeassistant" : " 2025.3 .0" ,
13
13
"render_readme" : true
14
14
}
You can’t perform that action at this time.
0 commit comments