Skip to content

Commit e282078

Browse files
authored
Bump devolo_home_control_api to 0.19.0 (#144374)
1 parent ed1eea9 commit e282078

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

homeassistant/components/devolo_home_control/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"integration_type": "hub",
99
"iot_class": "local_push",
1010
"loggers": ["devolo_home_control_api"],
11-
"requirements": ["devolo-home-control-api==0.18.3"],
11+
"requirements": ["devolo-home-control-api==0.19.0"],
1212
"zeroconf": ["_dvl-deviceapi._tcp.local."]
1313
}

requirements_all.txt

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/components/devolo_home_control/mocks.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Mocks for tests."""
22

3+
from datetime import UTC
34
from typing import Any
45
from unittest.mock import MagicMock
56

@@ -28,6 +29,7 @@ class BinarySensorPropertyMock(BinarySensorProperty):
2829
def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-called
2930
"""Initialize the mock."""
3031
self._logger = MagicMock()
32+
self._timezone = UTC
3133
self.element_uid = "Test"
3234
self.key_count = 1
3335
self.sensor_type = "door"
@@ -41,6 +43,7 @@ class BinarySwitchPropertyMock(BinarySwitchProperty):
4143
def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-called
4244
"""Initialize the mock."""
4345
self._logger = MagicMock()
46+
self._timezone = UTC
4447
self.element_uid = "Test"
4548
self.state = False
4649

@@ -51,6 +54,7 @@ class ConsumptionPropertyMock(ConsumptionProperty):
5154
def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-called
5255
"""Initialize the mock."""
5356
self._logger = MagicMock()
57+
self._timezone = UTC
5458
self.element_uid = "devolo.Meter:Test"
5559
self.current_unit = "W"
5660
self.total_unit = "kWh"
@@ -68,6 +72,7 @@ def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-cal
6872
self._unit = "°C"
6973
self._value = 20
7074
self._logger = MagicMock()
75+
self._timezone = UTC
7176

7277

7378
class BrightnessSensorPropertyMock(MultiLevelSensorProperty):
@@ -80,6 +85,7 @@ def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-cal
8085
self._unit = "%"
8186
self._value = 20
8287
self._logger = MagicMock()
88+
self._timezone = UTC
8389

8490

8591
class MultiLevelSwitchPropertyMock(MultiLevelSwitchProperty):
@@ -92,6 +98,7 @@ def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-cal
9298
self.max = 24
9399
self._value = 20
94100
self._logger = MagicMock()
101+
self._timezone = UTC
95102

96103

97104
class SirenPropertyMock(MultiLevelSwitchProperty):
@@ -105,6 +112,7 @@ def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-cal
105112
self.switch_type = "tone"
106113
self._value = 0
107114
self._logger = MagicMock()
115+
self._timezone = UTC
108116

109117

110118
class SettingsMock(SettingsProperty):
@@ -113,6 +121,7 @@ class SettingsMock(SettingsProperty):
113121
def __init__(self, **kwargs: Any) -> None: # pylint: disable=super-init-not-called
114122
"""Initialize the mock."""
115123
self._logger = MagicMock()
124+
self._timezone = UTC
116125
self.name = "Test"
117126
self.zone = "Test"
118127
self.tone = 1

0 commit comments

Comments
 (0)