pytest-homeassistant-custom-component 0.13.272__py3-none-any.whl → 0.13.274__py3-none-any.whl

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.
@@ -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 = "3"
8
+ MINOR_VERSION: Final = 9
9
+ PATCH_VERSION: Final = "0b1"
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.272
3
+ Version: 0.13.274
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.3
45
+ Requires-Dist: homeassistant==2025.9.0b1
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.3&labelColor=blue)
63
+ ![HA core version](https://img.shields.io/static/v1?label=HA+core+version&message=2025.9.0b1&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,13 +1,13 @@
1
1
  pytest_homeassistant_custom_component/__init__.py,sha256=pUI8j-H-57ncCLnvZSDWZPCtJpvi3ACZqPtH5SbedZA,138
2
2
  pytest_homeassistant_custom_component/asyncio_legacy.py,sha256=UdkV2mKqeS21QX9LSdBYsBRbm2h4JCVVZeesaOLKOAE,3886
3
3
  pytest_homeassistant_custom_component/common.py,sha256=KU5RmDkw_OOk20AYP9WJPoLFoFEbYX0JVdsY8DN6nKk,65399
4
- pytest_homeassistant_custom_component/const.py,sha256=SDLm0NRgzoaYqapJ9yCbLtgnj9UZY_NWYL_X-fcTTN8,399
4
+ pytest_homeassistant_custom_component/const.py,sha256=1fpVeutQAsfv5fK89ZhpC-9VqyCdUsWlfxWzv6qOi4U,401
5
5
  pytest_homeassistant_custom_component/ignore_uncaught_exceptions.py,sha256=rilak_dQGMNhDqST1ZzhjZl_qmytFjkcez0vYmLMQ4Q,1601
6
6
  pytest_homeassistant_custom_component/patch_json.py,sha256=hNUeb1yxAr7ONfvX-o_WkI6zhQDCdKl7GglPjkVUiHo,1063
7
7
  pytest_homeassistant_custom_component/patch_recorder.py,sha256=lW8N_3ZIKQ5lsVjRc-ROo7d0egUZcpjquWKqe7iEF94,819
8
8
  pytest_homeassistant_custom_component/patch_time.py,sha256=G6RcRJNvl8q6qcbvknA21dsZdoF5gfQDh46PptWAwWA,2509
9
- pytest_homeassistant_custom_component/plugins.py,sha256=YNSYDRonL-Gevj2wV7HP6ZB9vQqrNztMrtUru3BA7FE,67754
10
- pytest_homeassistant_custom_component/syrupy.py,sha256=N_g_90dWqruzUogQi0rJsuN0XRbA6ffJen62r8P9cdo,15588
9
+ pytest_homeassistant_custom_component/plugins.py,sha256=KplWyXm6NrYxxvdfoonjgBcMWsoNyFXRqdmj9juI2io,68142
10
+ pytest_homeassistant_custom_component/syrupy.py,sha256=TErrrWG9mjI51289A3uOA7rRumqQwQSI7z47jlWoiq4,15621
11
11
  pytest_homeassistant_custom_component/typing.py,sha256=zGhdf6U6aRq5cPwIfRUdtZeApLOyPD2EArjznKoIRZM,1734
12
12
  pytest_homeassistant_custom_component/components/__init__.py,sha256=0BHCdArl5gPjDJWaZrqvApHvzL_29FbE1RMg_mg__Qs,138
13
13
  pytest_homeassistant_custom_component/components/diagnostics/__init__.py,sha256=O_ys8t0iHvRorFr4TrR9k3sa3Xh5qBb4HsylY775UFA,2431
@@ -19,10 +19,10 @@ pytest_homeassistant_custom_component/test_util/aiohttp.py,sha256=oPQaFRgXcAfHj9
19
19
  pytest_homeassistant_custom_component/testing_config/__init__.py,sha256=SRp6h9HJi2I_vA6cPNkMiR0BTYib5XVmL03H-l3BPL0,158
20
20
  pytest_homeassistant_custom_component/testing_config/custom_components/__init__.py,sha256=-l6KCBLhwEDkCztlY6S-j53CjmKY6-A_3eX5JVS02NY,173
21
21
  pytest_homeassistant_custom_component/testing_config/custom_components/test_constant_deprecation/__init__.py,sha256=2vF_C-VP9tDjZMX7h6iJRAugtH2Bf3b4fE3i9j4vGeY,383
22
- pytest_homeassistant_custom_component-0.13.272.dist-info/licenses/LICENSE,sha256=7h-vqUxyeQNXiQgRJ8350CSHOy55M07DZuv4KG70AS8,1070
23
- pytest_homeassistant_custom_component-0.13.272.dist-info/licenses/LICENSE_HA_CORE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
- pytest_homeassistant_custom_component-0.13.272.dist-info/METADATA,sha256=stn3W0c0fNnIjFY2c39BTEESWyCKKGQ4sfwAXpdVouI,5928
25
- pytest_homeassistant_custom_component-0.13.272.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- pytest_homeassistant_custom_component-0.13.272.dist-info/entry_points.txt,sha256=bOCTSuP8RSPg0QfwdfurUShvMGWg4MI2F8rxbWx-VtQ,73
27
- pytest_homeassistant_custom_component-0.13.272.dist-info/top_level.txt,sha256=PR2cize2la22eOO7dQChJWK8dkJnuMmDC-fhafmdOWw,38
28
- pytest_homeassistant_custom_component-0.13.272.dist-info/RECORD,,
22
+ pytest_homeassistant_custom_component-0.13.274.dist-info/licenses/LICENSE,sha256=7h-vqUxyeQNXiQgRJ8350CSHOy55M07DZuv4KG70AS8,1070
23
+ pytest_homeassistant_custom_component-0.13.274.dist-info/licenses/LICENSE_HA_CORE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
+ pytest_homeassistant_custom_component-0.13.274.dist-info/METADATA,sha256=0wNsA9USRBBQ2n9g9A9_t9bs2AfL65HwlMJU4ElJgo4,5932
25
+ pytest_homeassistant_custom_component-0.13.274.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ pytest_homeassistant_custom_component-0.13.274.dist-info/entry_points.txt,sha256=bOCTSuP8RSPg0QfwdfurUShvMGWg4MI2F8rxbWx-VtQ,73
27
+ pytest_homeassistant_custom_component-0.13.274.dist-info/top_level.txt,sha256=PR2cize2la22eOO7dQChJWK8dkJnuMmDC-fhafmdOWw,38
28
+ pytest_homeassistant_custom_component-0.13.274.dist-info/RECORD,,