Skip to content

Commit 991b89d

Browse files
committed
Save updated snapshot files, ruff fixes
1 parent db10282 commit 991b89d

File tree

14 files changed

+375
-374
lines changed

14 files changed

+375
-374
lines changed

custom_components/plugwise/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from datetime import timedelta
44

5+
from packaging.version import Version
56
from plugwise import GwEntityData, Smile
67
from plugwise.exceptions import (
78
ConnectionFailedError,
@@ -26,7 +27,6 @@
2627
from homeassistant.helpers.aiohttp_client import async_get_clientsession
2728
from homeassistant.helpers.debounce import Debouncer
2829
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
29-
from packaging.version import Version
3030

3131
from .const import DEFAULT_SCAN_INTERVAL, DOMAIN, LOGGER
3232

tests/components/plugwise/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from typing import Any
77
from unittest.mock import AsyncMock, MagicMock, patch
88

9+
from munch import Munch
10+
from packaging.version import Version
911
import pytest
1012

1113
from homeassistant.components.plugwise.const import DOMAIN
@@ -17,8 +19,6 @@
1719
CONF_USERNAME,
1820
)
1921
from homeassistant.core import HomeAssistant
20-
from munch import Munch
21-
from packaging.version import Version
2222

2323
from tests.common import MockConfigEntry, load_fixture
2424

tests/components/plugwise/snapshots/test_climate.ambr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# serializer version: 1
2-
# name: test_adam_2_climate_states[platforms0-False-m_adam_heating][climate.bathroom-entry]
2+
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.bathroom-entry]
33
EntityRegistryEntrySnapshot({
44
'aliases': set({
55
}),
@@ -50,7 +50,7 @@
5050
'unit_of_measurement': None,
5151
})
5252
# ---
53-
# name: test_adam_2_climate_states[platforms0-False-m_adam_heating][climate.bathroom-state]
53+
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.bathroom-state]
5454
StateSnapshot({
5555
'attributes': ReadOnlyDict({
5656
'current_temperature': 17.9,
@@ -83,7 +83,7 @@
8383
'state': 'auto',
8484
})
8585
# ---
86-
# name: test_adam_2_climate_states[platforms0-False-m_adam_heating][climate.living_room-entry]
86+
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.living_room-entry]
8787
EntityRegistryEntrySnapshot({
8888
'aliases': set({
8989
}),
@@ -134,7 +134,7 @@
134134
'unit_of_measurement': None,
135135
})
136136
# ---
137-
# name: test_adam_2_climate_states[platforms0-False-m_adam_heating][climate.living_room-state]
137+
# name: test_adam_2_climate_snapshot[platforms0-False-m_adam_heating][climate.living_room-state]
138138
StateSnapshot({
139139
'attributes': ReadOnlyDict({
140140
'current_temperature': 19.1,
@@ -167,7 +167,7 @@
167167
'state': 'heat',
168168
})
169169
# ---
170-
# name: test_adam_climate_states[platforms0][climate.badkamer-entry]
170+
# name: test_adam_climate_snapshot[platforms0][climate.badkamer-entry]
171171
EntityRegistryEntrySnapshot({
172172
'aliases': set({
173173
}),
@@ -217,7 +217,7 @@
217217
'unit_of_measurement': None,
218218
})
219219
# ---
220-
# name: test_adam_climate_states[platforms0][climate.badkamer-state]
220+
# name: test_adam_climate_snapshot[platforms0][climate.badkamer-state]
221221
StateSnapshot({
222222
'attributes': ReadOnlyDict({
223223
'current_temperature': 18.9,
@@ -249,7 +249,7 @@
249249
'state': 'auto',
250250
})
251251
# ---
252-
# name: test_adam_climate_states[platforms0][climate.bios-entry]
252+
# name: test_adam_climate_snapshot[platforms0][climate.bios-entry]
253253
EntityRegistryEntrySnapshot({
254254
'aliases': set({
255255
}),
@@ -299,7 +299,7 @@
299299
'unit_of_measurement': None,
300300
})
301301
# ---
302-
# name: test_adam_climate_states[platforms0][climate.bios-state]
302+
# name: test_adam_climate_snapshot[platforms0][climate.bios-state]
303303
StateSnapshot({
304304
'attributes': ReadOnlyDict({
305305
'current_temperature': 16.5,
@@ -331,7 +331,7 @@
331331
'state': 'heat',
332332
})
333333
# ---
334-
# name: test_adam_climate_states[platforms0][climate.garage-entry]
334+
# name: test_adam_climate_snapshot[platforms0][climate.garage-entry]
335335
EntityRegistryEntrySnapshot({
336336
'aliases': set({
337337
}),
@@ -380,7 +380,7 @@
380380
'unit_of_measurement': None,
381381
})
382382
# ---
383-
# name: test_adam_climate_states[platforms0][climate.garage-state]
383+
# name: test_adam_climate_snapshot[platforms0][climate.garage-state]
384384
StateSnapshot({
385385
'attributes': ReadOnlyDict({
386386
'current_temperature': 15.6,
@@ -411,7 +411,7 @@
411411
'state': 'heat',
412412
})
413413
# ---
414-
# name: test_adam_climate_states[platforms0][climate.jessie-entry]
414+
# name: test_adam_climate_snapshot[platforms0][climate.jessie-entry]
415415
EntityRegistryEntrySnapshot({
416416
'aliases': set({
417417
}),
@@ -461,7 +461,7 @@
461461
'unit_of_measurement': None,
462462
})
463463
# ---
464-
# name: test_adam_climate_states[platforms0][climate.jessie-state]
464+
# name: test_adam_climate_snapshot[platforms0][climate.jessie-state]
465465
StateSnapshot({
466466
'attributes': ReadOnlyDict({
467467
'current_temperature': 17.2,
@@ -493,7 +493,7 @@
493493
'state': 'auto',
494494
})
495495
# ---
496-
# name: test_adam_climate_states[platforms0][climate.woonkamer-entry]
496+
# name: test_adam_climate_snapshot[platforms0][climate.woonkamer-entry]
497497
EntityRegistryEntrySnapshot({
498498
'aliases': set({
499499
}),
@@ -543,7 +543,7 @@
543543
'unit_of_measurement': None,
544544
})
545545
# ---
546-
# name: test_adam_climate_states[platforms0][climate.woonkamer-state]
546+
# name: test_adam_climate_snapshot[platforms0][climate.woonkamer-state]
547547
StateSnapshot({
548548
'attributes': ReadOnlyDict({
549549
'current_temperature': 20.9,
@@ -575,7 +575,7 @@
575575
'state': 'auto',
576576
})
577577
# ---
578-
# name: test_anna_2_climate_states[platforms0-True-m_anna_heatpump_cooling][climate.anna-entry]
578+
# name: test_anna_2_climate_snapshot[platforms0-True-m_anna_heatpump_cooling][climate.anna-entry]
579579
EntityRegistryEntrySnapshot({
580580
'aliases': set({
581581
}),
@@ -625,7 +625,7 @@
625625
'unit_of_measurement': None,
626626
})
627627
# ---
628-
# name: test_anna_2_climate_states[platforms0-True-m_anna_heatpump_cooling][climate.anna-state]
628+
# name: test_anna_2_climate_snapshot[platforms0-True-m_anna_heatpump_cooling][climate.anna-state]
629629
StateSnapshot({
630630
'attributes': ReadOnlyDict({
631631
'current_temperature': 26.3,
@@ -658,7 +658,7 @@
658658
'state': 'auto',
659659
})
660660
# ---
661-
# name: test_anna_3_climate_states[platforms0-True-m_anna_heatpump_idle][climate.anna-entry]
661+
# name: test_anna_3_climate_snapshot[platforms0-True-m_anna_heatpump_idle][climate.anna-entry]
662662
EntityRegistryEntrySnapshot({
663663
'aliases': set({
664664
}),
@@ -708,7 +708,7 @@
708708
'unit_of_measurement': None,
709709
})
710710
# ---
711-
# name: test_anna_3_climate_states[platforms0-True-m_anna_heatpump_idle][climate.anna-state]
711+
# name: test_anna_3_climate_snapshot[platforms0-True-m_anna_heatpump_idle][climate.anna-state]
712712
StateSnapshot({
713713
'attributes': ReadOnlyDict({
714714
'current_temperature': 23.0,
@@ -741,7 +741,7 @@
741741
'state': 'auto',
742742
})
743743
# ---
744-
# name: test_anna_climate_states[platforms0-True-anna_heatpump_heating][climate.anna-entry]
744+
# name: test_anna_climate_snapshot[platforms0-True-anna_heatpump_heating][climate.anna-entry]
745745
EntityRegistryEntrySnapshot({
746746
'aliases': set({
747747
}),
@@ -791,7 +791,7 @@
791791
'unit_of_measurement': None,
792792
})
793793
# ---
794-
# name: test_anna_climate_states[platforms0-True-anna_heatpump_heating][climate.anna-state]
794+
# name: test_anna_climate_snapshot[platforms0-True-anna_heatpump_heating][climate.anna-state]
795795
StateSnapshot({
796796
'attributes': ReadOnlyDict({
797797
'current_temperature': 19.3,

0 commit comments

Comments
 (0)