pytest-homeassistant-custom-component 0.13.271__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.
Files changed (37) hide show
  1. {pytest_homeassistant_custom_component-0.13.271/src/pytest_homeassistant_custom_component.egg-info → pytest_homeassistant_custom_component-0.13.273}/PKG-INFO +3 -3
  2. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/README.md +1 -1
  3. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/const.py +2 -2
  4. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/plugins.py +13 -1
  5. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/syrupy.py +1 -0
  6. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273/src/pytest_homeassistant_custom_component.egg-info}/PKG-INFO +3 -3
  7. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/requires.txt +1 -1
  8. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/LICENSE +0 -0
  9. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/LICENSE_HA_CORE.md +0 -0
  10. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/setup.cfg +0 -0
  11. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/setup.py +0 -0
  12. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/__init__.py +0 -0
  13. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/asyncio_legacy.py +0 -0
  14. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/common.py +0 -0
  15. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/__init__.py +0 -0
  16. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/diagnostics/__init__.py +0 -0
  17. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/__init__.py +0 -0
  18. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/common.py +0 -0
  19. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/components/recorder/db_schema_0.py +0 -0
  20. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/ignore_uncaught_exceptions.py +0 -0
  21. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_json.py +0 -0
  22. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_recorder.py +0 -0
  23. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/patch_time.py +0 -0
  24. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/test_util/__init__.py +0 -0
  25. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/test_util/aiohttp.py +0 -0
  26. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/__init__.py +0 -0
  27. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/custom_components/__init__.py +0 -0
  28. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/testing_config/custom_components/test_constant_deprecation/__init__.py +0 -0
  29. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component/typing.py +0 -0
  30. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/SOURCES.txt +0 -0
  31. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/dependency_links.txt +0 -0
  32. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/entry_points.txt +0 -0
  33. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/src/pytest_homeassistant_custom_component.egg-info/top_level.txt +0 -0
  34. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/tests/test_common.py +0 -0
  35. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/tests/test_config_flow.py +0 -0
  36. {pytest_homeassistant_custom_component-0.13.271 → pytest_homeassistant_custom_component-0.13.273}/tests/test_diagnostics.py +0 -0
  37. {pytest_homeassistant_custom_component-0.13.271 → 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.271
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.8.2
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
- ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.8.2&labelColor=blue)
63
+ ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.9.0b0&labelColor=blue)
64
64
 
65
65
  [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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
- ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.8.2&labelColor=blue)
3
+ ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.9.0b0&labelColor=blue)
4
4
 
5
5
  [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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 = 8
9
- PATCH_VERSION: Final = "2"
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 scanner as bluetooth_scanner # noqa: PLC0415
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.271
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.8.2
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
- ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.8.2&labelColor=blue)
63
+ ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.9.0b0&labelColor=blue)
64
64
 
65
65
  [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/MatthewFlamm/pytest-homeassistant-custom-component)
66
66
 
@@ -23,7 +23,7 @@ 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.8.2
26
+ homeassistant==2025.9.0b0
27
27
  SQLAlchemy==2.0.41
28
28
  paho-mqtt==2.1.0
29
29
  numpy==2.3.2