pytest-homeassistant-custom-component 0.13.281__tar.gz → 0.13.282__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_homeassistant_custom_component-0.13.281/src/pytest_homeassistant_custom_component.egg-info → pytest_homeassistant_custom_component-0.13.282}/PKG-INFO +8 -8
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/README.md +1 -1
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/const.py +3 -2
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/plugins.py +22 -2
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/syrupy.py +0 -1
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282/src/pytest_homeassistant_custom_component.egg-info}/PKG-INFO +8 -8
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component.egg-info/requires.txt +6 -6
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/LICENSE +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/LICENSE_HA_CORE.md +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/setup.cfg +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/setup.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/asyncio_legacy.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/components/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/components/diagnostics/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/components/recorder/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/components/recorder/common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/components/recorder/db_schema_0.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/ignore_uncaught_exceptions.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/patch_json.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/patch_recorder.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/patch_time.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/test_util/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/test_util/aiohttp.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/testing_config/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/testing_config/custom_components/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/testing_config/custom_components/test_constant_deprecation/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component/typing.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component.egg-info/SOURCES.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component.egg-info/dependency_links.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component.egg-info/entry_points.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/src/pytest_homeassistant_custom_component.egg-info/top_level.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/tests/test_common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/tests/test_config_flow.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/tests/test_diagnostics.py +0 -0
- {pytest_homeassistant_custom_component-0.13.281 → pytest_homeassistant_custom_component-0.13.282}/tests/test_sensor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-homeassistant-custom-component
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.282
|
|
4
4
|
Summary: Experimental package to automatically extract test plugins for Home Assistant custom components
|
|
5
5
|
Home-page: https://github.com/MatthewFlamm/pytest-homeassistant-custom-component
|
|
6
6
|
Author: Matthew Flamm
|
|
@@ -18,17 +18,17 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
License-File: LICENSE_HA_CORE.md
|
|
20
20
|
Requires-Dist: sqlalchemy
|
|
21
|
-
Requires-Dist: coverage==7.10.
|
|
21
|
+
Requires-Dist: coverage==7.10.6
|
|
22
22
|
Requires-Dist: freezegun==1.5.2
|
|
23
23
|
Requires-Dist: go2rtc-client==0.2.1
|
|
24
24
|
Requires-Dist: license-expression==30.4.3
|
|
25
25
|
Requires-Dist: mock-open==1.4.0
|
|
26
|
-
Requires-Dist: pydantic==2.11.
|
|
26
|
+
Requires-Dist: pydantic==2.11.9
|
|
27
27
|
Requires-Dist: pylint-per-file-ignores==1.4.0
|
|
28
28
|
Requires-Dist: pipdeptree==2.26.1
|
|
29
|
-
Requires-Dist: pytest-asyncio==1.
|
|
29
|
+
Requires-Dist: pytest-asyncio==1.2.0
|
|
30
30
|
Requires-Dist: pytest-aiohttp==1.1.0
|
|
31
|
-
Requires-Dist: pytest-cov==
|
|
31
|
+
Requires-Dist: pytest-cov==7.0.0
|
|
32
32
|
Requires-Dist: pytest-freezer==0.4.9
|
|
33
33
|
Requires-Dist: pytest-github-actions-annotate-failures==0.3.0
|
|
34
34
|
Requires-Dist: pytest-socket==0.7.0
|
|
@@ -37,12 +37,12 @@ Requires-Dist: pytest-timeout==2.4.0
|
|
|
37
37
|
Requires-Dist: pytest-unordered==0.7.0
|
|
38
38
|
Requires-Dist: pytest-picked==0.5.1
|
|
39
39
|
Requires-Dist: pytest-xdist==3.8.0
|
|
40
|
-
Requires-Dist: pytest==8.4.
|
|
40
|
+
Requires-Dist: pytest==8.4.2
|
|
41
41
|
Requires-Dist: requests-mock==1.12.1
|
|
42
42
|
Requires-Dist: respx==0.22.0
|
|
43
43
|
Requires-Dist: syrupy==4.9.1
|
|
44
44
|
Requires-Dist: tqdm==4.67.1
|
|
45
|
-
Requires-Dist: homeassistant==2025.
|
|
45
|
+
Requires-Dist: homeassistant==2025.10.0b0
|
|
46
46
|
Requires-Dist: SQLAlchemy==2.0.41
|
|
47
47
|
Requires-Dist: paho-mqtt==2.1.0
|
|
48
48
|
Requires-Dist: numpy==2.3.2
|
|
@@ -60,7 +60,7 @@ Dynamic: summary
|
|
|
60
60
|
|
|
61
61
|
# pytest-homeassistant-custom-component
|
|
62
62
|
|
|
63
|
-

|
|
64
64
|
|
|
65
65
|
[](https://gitpod.io/#https://github.com/MatthewFlamm/pytest-homeassistant-custom-component)
|
|
66
66
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pytest-homeassistant-custom-component
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
5
|
[](https://gitpod.io/#https://github.com/MatthewFlamm/pytest-homeassistant-custom-component)
|
|
6
6
|
|
|
@@ -5,7 +5,8 @@ This file is originally from homeassistant/core and modified by pytest-homeassis
|
|
|
5
5
|
"""
|
|
6
6
|
from typing import TYPE_CHECKING, Final
|
|
7
7
|
MAJOR_VERSION: Final = 2025
|
|
8
|
-
MINOR_VERSION: Final =
|
|
9
|
-
PATCH_VERSION: Final = "
|
|
8
|
+
MINOR_VERSION: Final = 10
|
|
9
|
+
PATCH_VERSION: Final = "0b0"
|
|
10
10
|
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
|
11
11
|
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
|
|
12
|
+
CONF_API_VERSION: Final = "api_version"
|
|
@@ -103,6 +103,7 @@ from homeassistant.helpers import (
|
|
|
103
103
|
translation as translation_helper,
|
|
104
104
|
)
|
|
105
105
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
|
106
|
+
from homeassistant.helpers.service_info.dhcp import DhcpServiceInfo
|
|
106
107
|
from homeassistant.helpers.translation import _TranslationsCacheData
|
|
107
108
|
from homeassistant.helpers.typing import ConfigType
|
|
108
109
|
from homeassistant.setup import async_setup_component
|
|
@@ -1861,9 +1862,10 @@ def mock_bleak_scanner_start() -> Generator[MagicMock]:
|
|
|
1861
1862
|
# pylint: disable-next=c-extension-no-member
|
|
1862
1863
|
bluetooth_scanner.OriginalBleakScanner.stop = AsyncMock() # type: ignore[assignment]
|
|
1863
1864
|
|
|
1864
|
-
# Mock BlueZ management controller
|
|
1865
|
+
# Mock BlueZ management controller to successfully setup
|
|
1866
|
+
# This prevents the manager from operating in degraded mode
|
|
1865
1867
|
mock_mgmt_bluetooth_ctl = Mock()
|
|
1866
|
-
mock_mgmt_bluetooth_ctl.setup = AsyncMock(
|
|
1868
|
+
mock_mgmt_bluetooth_ctl.setup = AsyncMock(return_value=None)
|
|
1867
1869
|
|
|
1868
1870
|
with (
|
|
1869
1871
|
patch.object(
|
|
@@ -2094,3 +2096,21 @@ def disable_block_async_io() -> Generator[None]:
|
|
|
2094
2096
|
blocking_call.object, blocking_call.function, blocking_call.original_func
|
|
2095
2097
|
)
|
|
2096
2098
|
calls.clear()
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
# Ensure that incorrectly formatted mac addresses are rejected during
|
|
2102
|
+
# DhcpServiceInfo initialisation
|
|
2103
|
+
_real_dhcp_service_info_init = DhcpServiceInfo.__init__
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
def _dhcp_service_info_init(self: DhcpServiceInfo, *args: Any, **kwargs: Any) -> None:
|
|
2107
|
+
"""Override __init__ for DhcpServiceInfo.
|
|
2108
|
+
|
|
2109
|
+
Ensure that the macaddress is always in lowercase and without colons to match DHCP service.
|
|
2110
|
+
"""
|
|
2111
|
+
_real_dhcp_service_info_init(self, *args, **kwargs)
|
|
2112
|
+
if self.macaddress != self.macaddress.lower().replace(":", ""):
|
|
2113
|
+
raise ValueError("macaddress is not correctly formatted")
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
DhcpServiceInfo.__init__ = _dhcp_service_info_init
|
|
@@ -179,7 +179,6 @@ class HomeAssistantSnapshotSerializer(AmberDataSerializer):
|
|
|
179
179
|
serialized.pop("_cache")
|
|
180
180
|
# This can be removed when suggested_area is removed from DeviceEntry
|
|
181
181
|
serialized.pop("_suggested_area")
|
|
182
|
-
serialized.pop("is_new")
|
|
183
182
|
return cls._remove_created_and_modified_at(serialized)
|
|
184
183
|
|
|
185
184
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-homeassistant-custom-component
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.282
|
|
4
4
|
Summary: Experimental package to automatically extract test plugins for Home Assistant custom components
|
|
5
5
|
Home-page: https://github.com/MatthewFlamm/pytest-homeassistant-custom-component
|
|
6
6
|
Author: Matthew Flamm
|
|
@@ -18,17 +18,17 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
License-File: LICENSE_HA_CORE.md
|
|
20
20
|
Requires-Dist: sqlalchemy
|
|
21
|
-
Requires-Dist: coverage==7.10.
|
|
21
|
+
Requires-Dist: coverage==7.10.6
|
|
22
22
|
Requires-Dist: freezegun==1.5.2
|
|
23
23
|
Requires-Dist: go2rtc-client==0.2.1
|
|
24
24
|
Requires-Dist: license-expression==30.4.3
|
|
25
25
|
Requires-Dist: mock-open==1.4.0
|
|
26
|
-
Requires-Dist: pydantic==2.11.
|
|
26
|
+
Requires-Dist: pydantic==2.11.9
|
|
27
27
|
Requires-Dist: pylint-per-file-ignores==1.4.0
|
|
28
28
|
Requires-Dist: pipdeptree==2.26.1
|
|
29
|
-
Requires-Dist: pytest-asyncio==1.
|
|
29
|
+
Requires-Dist: pytest-asyncio==1.2.0
|
|
30
30
|
Requires-Dist: pytest-aiohttp==1.1.0
|
|
31
|
-
Requires-Dist: pytest-cov==
|
|
31
|
+
Requires-Dist: pytest-cov==7.0.0
|
|
32
32
|
Requires-Dist: pytest-freezer==0.4.9
|
|
33
33
|
Requires-Dist: pytest-github-actions-annotate-failures==0.3.0
|
|
34
34
|
Requires-Dist: pytest-socket==0.7.0
|
|
@@ -37,12 +37,12 @@ Requires-Dist: pytest-timeout==2.4.0
|
|
|
37
37
|
Requires-Dist: pytest-unordered==0.7.0
|
|
38
38
|
Requires-Dist: pytest-picked==0.5.1
|
|
39
39
|
Requires-Dist: pytest-xdist==3.8.0
|
|
40
|
-
Requires-Dist: pytest==8.4.
|
|
40
|
+
Requires-Dist: pytest==8.4.2
|
|
41
41
|
Requires-Dist: requests-mock==1.12.1
|
|
42
42
|
Requires-Dist: respx==0.22.0
|
|
43
43
|
Requires-Dist: syrupy==4.9.1
|
|
44
44
|
Requires-Dist: tqdm==4.67.1
|
|
45
|
-
Requires-Dist: homeassistant==2025.
|
|
45
|
+
Requires-Dist: homeassistant==2025.10.0b0
|
|
46
46
|
Requires-Dist: SQLAlchemy==2.0.41
|
|
47
47
|
Requires-Dist: paho-mqtt==2.1.0
|
|
48
48
|
Requires-Dist: numpy==2.3.2
|
|
@@ -60,7 +60,7 @@ Dynamic: summary
|
|
|
60
60
|
|
|
61
61
|
# pytest-homeassistant-custom-component
|
|
62
62
|
|
|
63
|
-

|
|
64
64
|
|
|
65
65
|
[](https://gitpod.io/#https://github.com/MatthewFlamm/pytest-homeassistant-custom-component)
|
|
66
66
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
sqlalchemy
|
|
2
|
-
coverage==7.10.
|
|
2
|
+
coverage==7.10.6
|
|
3
3
|
freezegun==1.5.2
|
|
4
4
|
go2rtc-client==0.2.1
|
|
5
5
|
license-expression==30.4.3
|
|
6
6
|
mock-open==1.4.0
|
|
7
|
-
pydantic==2.11.
|
|
7
|
+
pydantic==2.11.9
|
|
8
8
|
pylint-per-file-ignores==1.4.0
|
|
9
9
|
pipdeptree==2.26.1
|
|
10
|
-
pytest-asyncio==1.
|
|
10
|
+
pytest-asyncio==1.2.0
|
|
11
11
|
pytest-aiohttp==1.1.0
|
|
12
|
-
pytest-cov==
|
|
12
|
+
pytest-cov==7.0.0
|
|
13
13
|
pytest-freezer==0.4.9
|
|
14
14
|
pytest-github-actions-annotate-failures==0.3.0
|
|
15
15
|
pytest-socket==0.7.0
|
|
@@ -18,12 +18,12 @@ pytest-timeout==2.4.0
|
|
|
18
18
|
pytest-unordered==0.7.0
|
|
19
19
|
pytest-picked==0.5.1
|
|
20
20
|
pytest-xdist==3.8.0
|
|
21
|
-
pytest==8.4.
|
|
21
|
+
pytest==8.4.2
|
|
22
22
|
requests-mock==1.12.1
|
|
23
23
|
respx==0.22.0
|
|
24
24
|
syrupy==4.9.1
|
|
25
25
|
tqdm==4.67.1
|
|
26
|
-
homeassistant==2025.
|
|
26
|
+
homeassistant==2025.10.0b0
|
|
27
27
|
SQLAlchemy==2.0.41
|
|
28
28
|
paho-mqtt==2.1.0
|
|
29
29
|
numpy==2.3.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|