pytest-homeassistant-custom-component 0.13.272__tar.gz → 0.13.273__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.272/src/pytest_homeassistant_custom_component.egg-info → pytest_homeassistant_custom_component-0.13.273}/PKG-INFO +3 -3
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/README.md +1 -1
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/const.py +2 -2
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/plugins.py +13 -1
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/syrupy.py +1 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273/src/pytest_homeassistant_custom_component.egg-info}/PKG-INFO +3 -3
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/requires.txt +1 -1
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/LICENSE +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/LICENSE_HA_CORE.md +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/setup.cfg +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/setup.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/asyncio_legacy.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/diagnostics/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/db_schema_0.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/ignore_uncaught_exceptions.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_json.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_recorder.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_time.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/test_util/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/test_util/aiohttp.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/custom_components/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/custom_components/test_constant_deprecation/__init__.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/typing.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/SOURCES.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/dependency_links.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/entry_points.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/top_level.txt +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/tests/test_common.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/tests/test_config_flow.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/tests/test_diagnostics.py +0 -0
- {pytest_homeassistant_custom_component-0.13.272 → pytest_homeassistant_custom_component-0.13.273}/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.273
|
|
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
|
|
@@ -42,7 +42,7 @@ 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.9.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,7 @@ 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 = 9
|
|
9
|
+
PATCH_VERSION: Final = "0b0"
|
|
10
10
|
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
|
11
11
|
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
|
|
@@ -1821,6 +1821,7 @@ async def mock_enable_bluetooth(
|
|
|
1821
1821
|
def mock_bluetooth_adapters() -> Generator[None]:
|
|
1822
1822
|
"""Fixture to mock bluetooth adapters."""
|
|
1823
1823
|
with (
|
|
1824
|
+
patch("habluetooth.util.recover_adapter"),
|
|
1824
1825
|
patch("bluetooth_auto_recovery.recover_adapter"),
|
|
1825
1826
|
patch("bluetooth_adapters.systems.platform.system", return_value="Linux"),
|
|
1826
1827
|
patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"),
|
|
@@ -1849,19 +1850,30 @@ def mock_bleak_scanner_start() -> Generator[MagicMock]:
|
|
|
1849
1850
|
|
|
1850
1851
|
# Late imports to avoid loading bleak unless we need it
|
|
1851
1852
|
|
|
1852
|
-
from habluetooth import
|
|
1853
|
+
from habluetooth import ( # noqa: PLC0415
|
|
1854
|
+
manager as bluetooth_manager,
|
|
1855
|
+
scanner as bluetooth_scanner,
|
|
1856
|
+
)
|
|
1853
1857
|
|
|
1854
1858
|
# We need to drop the stop method from the object since we patched
|
|
1855
1859
|
# out start and this fixture will expire before the stop method is called
|
|
1856
1860
|
# when EVENT_HOMEASSISTANT_STOP is fired.
|
|
1857
1861
|
# pylint: disable-next=c-extension-no-member
|
|
1858
1862
|
bluetooth_scanner.OriginalBleakScanner.stop = AsyncMock() # type: ignore[assignment]
|
|
1863
|
+
|
|
1864
|
+
# Mock BlueZ management controller
|
|
1865
|
+
mock_mgmt_bluetooth_ctl = Mock()
|
|
1866
|
+
mock_mgmt_bluetooth_ctl.setup = AsyncMock(side_effect=OSError("Mocked error"))
|
|
1867
|
+
|
|
1859
1868
|
with (
|
|
1860
1869
|
patch.object(
|
|
1861
1870
|
bluetooth_scanner.OriginalBleakScanner, # pylint: disable=c-extension-no-member
|
|
1862
1871
|
"start",
|
|
1863
1872
|
) as mock_bleak_scanner_start,
|
|
1864
1873
|
patch.object(bluetooth_scanner, "HaScanner"),
|
|
1874
|
+
patch.object(
|
|
1875
|
+
bluetooth_manager, "MGMTBluetoothCtl", return_value=mock_mgmt_bluetooth_ctl
|
|
1876
|
+
),
|
|
1865
1877
|
):
|
|
1866
1878
|
yield mock_bleak_scanner_start
|
|
1867
1879
|
|
|
@@ -179,6 +179,7 @@ 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")
|
|
182
183
|
return cls._remove_created_and_modified_at(serialized)
|
|
183
184
|
|
|
184
185
|
@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.273
|
|
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
|
|
@@ -42,7 +42,7 @@ 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.9.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
|
|
|
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
|