python-izone 1.3.7__py3-none-any.whl → 1.3.8__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.
pizone/discovery.py CHANGED
@@ -549,7 +549,7 @@ class DiscoveryService:
549
549
  continue
550
550
  try:
551
551
  self._cache_endpoint(endpoint)
552
- except RuntimeError:
552
+ except ControllerAlreadyClaimedError:
553
553
  continue
554
554
  verified.append(endpoint)
555
555
  if endpoint.uid not in notified:
@@ -799,8 +799,13 @@ class DiscoveryService:
799
799
  """Return the aiohttp session used for HTTP requests."""
800
800
  return self._session
801
801
 
802
- def _on_error_received(self, _: Exception) -> None:
803
- _LOG.warning("Error passed and ignored to error_received", exc_info=True)
802
+ def _on_error_received(self, exc: Exception) -> None:
803
+ # Expected when broadcast is blocked (firewall / no permission) or the
804
+ # interface is down; scan just finds nothing. Keep unexpected errors loud.
805
+ if isinstance(exc, OSError):
806
+ _LOG.debug("UDP error ignored: %s", exc)
807
+ return
808
+ _LOG.warning("Error passed and ignored to error_received: %s", exc)
804
809
 
805
810
  def _find_by_addr(self, addr: tuple[str, int]) -> Controller | None:
806
811
  for ctrl in self._controllers.values():
@@ -923,8 +928,7 @@ class DiscoveryService:
923
928
  previous = self._known_endpoints.get(endpoint.uid)
924
929
  newly_seen = previous is None
925
930
  host_changed = previous is not None and previous.host != endpoint.host
926
- with suppress(RuntimeError):
927
- self._cache_endpoint(endpoint)
931
+ self._cache_endpoint(endpoint)
928
932
  if newly_seen or host_changed:
929
933
  self._emit_endpoint_discovered(endpoint)
930
934
 
pizone/version.py CHANGED
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '1.3.7'
22
- __version_tuple__ = version_tuple = (1, 3, 7)
21
+ __version__ = version = '1.3.8'
22
+ __version_tuple__ = version_tuple = (1, 3, 8)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-izone
3
- Version: 1.3.7
3
+ Version: 1.3.8
4
4
  Summary: A python interface to the iZone airconditioner controller
5
5
  Project-URL: Homepage, https://github.com/Swamp-Ig/pizone
6
6
  Author-email: Penny Wood <pypl@ninjateaparty.com>
@@ -1,14 +1,14 @@
1
1
  pizone/__init__.py,sha256=9EbQzqD1XfS5fSE-zgFieuzxAfZcQb9a3wNXsMp0JKc,2644
2
2
  pizone/const.py,sha256=0skTh6zBe61AJ_57fqdBrxz3aVBM3T4Ak_cPSkOx2Bo,153
3
3
  pizone/controller.py,sha256=nctzAF8Y75T0_Ue9Hxxv9OfEex4zoNseOMjGfI6wHFE,41109
4
- pizone/discovery.py,sha256=9akqPwsB8gcsmqnT5GQ3CCilo4m3jYL7cA3MWFOU1Uc,37442
4
+ pizone/discovery.py,sha256=ZEXlzMgEcK2qYCU7UXCdgOrgv6vChOCgN_ddq5rACg0,37685
5
5
  pizone/exceptions.py,sha256=qzYNHzQBMDcuvLfxlvOsk6J2Lp0gtzlHqJWpzyEunvU,1603
6
6
  pizone/power.py,sha256=bXoDRVD6gCfq0kJv132sjfy13DHGd6p2uBg9HcxRSxA,10343
7
7
  pizone/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  pizone/types.py,sha256=fZrnec0Q815HyG2sFciLqNX0QDbTq1_0wTF92GXQh78,200
9
- pizone/version.py,sha256=qggYsfTliS2fgO5WngEhVPgiQ-AREJyDah_xDSuzcIM,520
9
+ pizone/version.py,sha256=FXUTXirc7-JCTXzXG9H84JqQTySUJIh6ktR1ZkEoISc,520
10
10
  pizone/zone.py,sha256=tqiLJAJCmp1cehCtVPjawUNY9qyYypC4x3igI5jtDNo,7446
11
- python_izone-1.3.7.dist-info/METADATA,sha256=t1FnN14YONJRs8bYY-sNsbADvzt6VaQbQLfOGlzCzDQ,2703
12
- python_izone-1.3.7.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
13
- python_izone-1.3.7.dist-info/licenses/licence.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
14
- python_izone-1.3.7.dist-info/RECORD,,
11
+ python_izone-1.3.8.dist-info/METADATA,sha256=S5q-Hty056t4AYv8gUgXUhvRbfgpuUButQxLBXAxpi0,2703
12
+ python_izone-1.3.8.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
13
+ python_izone-1.3.8.dist-info/licenses/licence.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
14
+ python_izone-1.3.8.dist-info/RECORD,,