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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Versions from 0.40 and up

## Ongoing

- Update snapshots to the new format via PR [#1070](https://github.com/plugwise/plugwise-beta/pull/1070)
- Add local beta brand icons via PR [#1050](https://github.com/plugwise/plugwise-beta/pull/1050)
- Lining up strings with Core Plugwise, update translations via PR [#1048](https://github.com/plugwise/plugwise-beta/pull/1048)

Expand Down
2 changes: 2 additions & 0 deletions custom_components/plugwise/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Config flow for Plugwise integration."""

# pylint: disable=hass-config-flow-polling-field

from __future__ import annotations

from copy import deepcopy
Expand Down
95 changes: 57 additions & 38 deletions tests/components/plugwise/snapshots/test_binary_sensor.ambr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# serializer version: 1
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.adam_plugwise_notification-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -53,8 +54,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.bios_cv_thermostatic_radiator_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -103,8 +105,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.cv_kraan_garage_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -153,8 +156,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.onoff_heating-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -202,8 +206,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.thermostatic_radiator_badkamer_1_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -252,8 +257,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.thermostatic_radiator_badkamer_2_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -302,8 +308,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.thermostatic_radiator_jessie_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -352,8 +359,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.zone_lisa_bios_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -402,8 +410,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.zone_lisa_wk_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -452,8 +461,9 @@
# ---
# name: test_adam_binary_sensor_snapshot[platforms0][binary_sensor.zone_thermostat_jessie_battery-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -502,8 +512,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_compressor_state-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -551,8 +562,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_cooling-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -600,8 +612,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_cooling_enabled-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -649,8 +662,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_dhw_state-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -698,8 +712,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_flame_state-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -747,8 +762,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_heating-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -796,8 +812,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.opentherm_secondary_boiler_state-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -845,8 +862,9 @@
# ---
# name: test_anna_binary_sensor_snapshot[platforms0-True-anna_heatpump_heating][binary_sensor.smile_anna_plugwise_notification-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down Expand Up @@ -894,8 +912,9 @@
# ---
# name: test_p1_v4_binary_sensor_snapshot[platforms0-03e65b16e4b247a29ae0d75a78cb492e-p1v4_442_triple][binary_sensor.smile_p1_plugwise_notification-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down
5 changes: 3 additions & 2 deletions tests/components/plugwise/snapshots/test_button.ambr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# serializer version: 1
# name: test_adam_button_snapshot[platforms0][button.adam_reboot-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
Expand Down
50 changes: 30 additions & 20 deletions tests/components/plugwise/snapshots/test_climate.ambr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# serializer version: 1
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.bathroom-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -86,8 +87,9 @@
# ---
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.living_room-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -171,8 +173,9 @@
# ---
# name: test_adam_climate_snapshot[platforms0][climate.badkamer-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -254,8 +257,9 @@
# ---
# name: test_adam_climate_snapshot[platforms0][climate.bios-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -337,8 +341,9 @@
# ---
# name: test_adam_climate_snapshot[platforms0][climate.garage-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -418,8 +423,9 @@
# ---
# name: test_adam_climate_snapshot[platforms0][climate.jessie-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -501,8 +507,9 @@
# ---
# name: test_adam_climate_snapshot[platforms0][climate.woonkamer-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -584,8 +591,9 @@
# ---
# name: test_anna_2_climate_snapshot[platforms0-True-m_anna_heatpump_cooling][climate.anna-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -668,8 +676,9 @@
# ---
# name: test_anna_3_climate_snapshot[platforms0][climate.anna-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down Expand Up @@ -751,8 +760,9 @@
# ---
# name: test_anna_climate_snapshot[platforms0-True-anna_heatpump_heating][climate.anna-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'aliases': list([
None,
]),
'area_id': None,
'capabilities': dict({
'hvac_modes': list([
Expand Down
Loading
Loading