python-rako-2025 0.3.10__tar.gz → 0.3.11__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 (23) hide show
  1. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/PKG-INFO +1 -1
  2. python_rako_2025-0.3.11/python_rako/__version__.py +1 -0
  3. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/bridge.py +0 -27
  4. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako_2025.egg-info/PKG-INFO +1 -1
  5. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/tests/test_bridge.py +4 -4
  6. python_rako_2025-0.3.10/python_rako/__version__.py +0 -1
  7. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/LICENSE +0 -0
  8. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/README.md +0 -0
  9. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/pyproject.toml +0 -0
  10. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/__init__.py +0 -0
  11. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/const.py +0 -0
  12. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/exceptions.py +0 -0
  13. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/helpers.py +0 -0
  14. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/model.py +0 -0
  15. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako/py.typed +0 -0
  16. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako_2025.egg-info/SOURCES.txt +0 -0
  17. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako_2025.egg-info/dependency_links.txt +0 -0
  18. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako_2025.egg-info/requires.txt +0 -0
  19. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/python_rako_2025.egg-info/top_level.txt +0 -0
  20. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/setup.cfg +0 -0
  21. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/setup.py +0 -0
  22. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/tests/test_helpers.py +0 -0
  23. {python_rako_2025-0.3.10 → python_rako_2025-0.3.11}/tests/test_model.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-rako-2025
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: Asynchronous Python client for Rako Controls Lighting
5
5
  Author-email: Simon Leigh <simonleigh@users.noreply.github.com>
6
6
  Project-URL: Homepage, https://github.com/simonleigh/python-rako
@@ -0,0 +1 @@
1
+ 0.3.11
@@ -207,18 +207,6 @@ class Bridge:
207
207
  for vent in ventilation:
208
208
  yield vent
209
209
 
210
- async def discover_all_devices(
211
- self, session: aiohttp.ClientSession, force_refresh: bool = False
212
- ) -> AsyncGenerator[
213
- RoomLight | ChannelLight | RoomVentilation | ChannelVentilation
214
- ]:
215
- """Discover all devices by fetching XML once."""
216
- lights, ventilation = await self.discover_devices(session, force_refresh)
217
- for light in lights:
218
- yield light
219
- for vent in ventilation:
220
- yield vent
221
-
222
210
  async def get_info(
223
211
  self, session: aiohttp.ClientSession, force_refresh: bool = False
224
212
  ) -> BridgeInfo:
@@ -250,21 +238,6 @@ class Bridge:
250
238
  charset=config.get("charset"),
251
239
  )
252
240
 
253
- @staticmethod
254
- def get_lights_from_discovery_xml(
255
- xml: str,
256
- ) -> Generator[RoomLight | ChannelLight]:
257
- for device in Bridge.get_devices_from_discovery_xml(xml, "Lights"):
258
- if isinstance(device, (RoomLight, ChannelLight)):
259
- yield device
260
-
261
- @staticmethod
262
- def get_all_devices_from_discovery_xml(
263
- xml: str,
264
- ) -> Generator[RoomLight | ChannelLight | RoomVentilation | ChannelVentilation]:
265
- """Get all devices (lights and ventilation) from discovery XML."""
266
- return Bridge.get_devices_from_discovery_xml(xml)
267
-
268
241
  @staticmethod
269
242
  def get_devices_from_discovery_xml(
270
243
  xml: str, device_types: str | list[str] | None = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-rako-2025
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: Asynchronous Python client for Rako Controls Lighting
5
5
  Author-email: Simon Leigh <simonleigh@users.noreply.github.com>
6
6
  Project-URL: Homepage, https://github.com/simonleigh/python-rako
@@ -9,7 +9,7 @@ from python_rako.model import (
9
9
 
10
10
 
11
11
  def test_get_lights_from_discovery_xml(rako_xml):
12
- lights = Bridge.get_lights_from_discovery_xml(rako_xml)
12
+ lights = list(Bridge.get_devices_from_discovery_xml(rako_xml, "Lights"))
13
13
 
14
14
  expected_lights = [
15
15
  RoomLight(room_id=5, room_title="Living Room", channel_id=0),
@@ -87,7 +87,7 @@ def test_get_bridge_info_from_discovery_xml2(rako_xml2):
87
87
 
88
88
 
89
89
  def test_get_lights_from_discovery_xml2(rako_xml2):
90
- lights = Bridge.get_lights_from_discovery_xml(rako_xml2)
90
+ lights = list(Bridge.get_devices_from_discovery_xml(rako_xml2, "Lights"))
91
91
 
92
92
  expected_lights = [
93
93
  RoomLight(room_id=112, room_title="Bedroom 1", channel_id=0),
@@ -145,7 +145,7 @@ def test_ventilation_command_compatibility():
145
145
 
146
146
  def test_get_all_devices_from_discovery_xml(rako_xml3):
147
147
  """Test discovering all device types from XML"""
148
- all_devices = list(Bridge.get_all_devices_from_discovery_xml(rako_xml3))
148
+ all_devices = list(Bridge.get_devices_from_discovery_xml(rako_xml3))
149
149
 
150
150
  # Should contain both lights and ventilation
151
151
  lights = [dev for dev in all_devices if isinstance(dev, (RoomLight, ChannelLight))]
@@ -212,7 +212,7 @@ def test_get_devices_all_parameter_variants(rako_xml3):
212
212
  """Test different ways to get all devices"""
213
213
  all_devices_none = list(Bridge.get_devices_from_discovery_xml(rako_xml3, None))
214
214
  all_devices_all = list(Bridge.get_devices_from_discovery_xml(rako_xml3, "All"))
215
- all_devices_method = list(Bridge.get_all_devices_from_discovery_xml(rako_xml3))
215
+ all_devices_method = list(Bridge.get_devices_from_discovery_xml(rako_xml3))
216
216
 
217
217
  # All should return the same devices
218
218
  assert all_devices_none == all_devices_all == all_devices_method
@@ -1 +0,0 @@
1
- 0.3.10