zigpy 1.2.1__tar.gz → 1.2.2__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 (125) hide show
  1. {zigpy-1.2.1/zigpy.egg-info → zigpy-1.2.2}/PKG-INFO +1 -1
  2. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/__init__.py +15 -0
  3. {zigpy-1.2.1 → zigpy-1.2.2/zigpy.egg-info}/PKG-INFO +1 -1
  4. {zigpy-1.2.1 → zigpy-1.2.2}/COPYING +0 -0
  5. {zigpy-1.2.1 → zigpy-1.2.2}/LICENSE +0 -0
  6. {zigpy-1.2.1 → zigpy-1.2.2}/README.md +0 -0
  7. {zigpy-1.2.1 → zigpy-1.2.2}/pyproject.toml +0 -0
  8. {zigpy-1.2.1 → zigpy-1.2.2}/setup.cfg +0 -0
  9. {zigpy-1.2.1 → zigpy-1.2.2}/setup.py +0 -0
  10. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_app_state.py +0 -0
  11. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_appdb.py +0 -0
  12. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_appdb_migration.py +0 -0
  13. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_application.py +0 -0
  14. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_backups.py +0 -0
  15. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_config.py +0 -0
  16. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_datastructures.py +0 -0
  17. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_datastructures_cpython.py +0 -0
  18. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_device.py +0 -0
  19. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_endpoint.py +0 -0
  20. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_event.py +0 -0
  21. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_group.py +0 -0
  22. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_listeners.py +0 -0
  23. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_packet_callbacks.py +0 -0
  24. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_quirks.py +0 -0
  25. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_quirks_registry.py +0 -0
  26. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_quirks_v2.py +0 -0
  27. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_serial.py +0 -0
  28. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_struct.py +0 -0
  29. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_topology.py +0 -0
  30. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_types.py +0 -0
  31. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zcl.py +0 -0
  32. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zcl_clusters.py +0 -0
  33. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zcl_foundation.py +0 -0
  34. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zcl_helpers.py +0 -0
  35. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zdo.py +0 -0
  36. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zdo_types.py +0 -0
  37. {zigpy-1.2.1 → zigpy-1.2.2}/tests/test_zigbee_util.py +0 -0
  38. {zigpy-1.2.1 → zigpy-1.2.2}/tools/__init__.py +0 -0
  39. {zigpy-1.2.1 → zigpy-1.2.2}/tools/regenerate_mypy_ignores.py +0 -0
  40. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/__init__.py +0 -0
  41. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb.py +0 -0
  42. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/__init__.py +0 -0
  43. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v0.sql +0 -0
  44. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v1.sql +0 -0
  45. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v10.sql +0 -0
  46. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v11.sql +0 -0
  47. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v12.sql +0 -0
  48. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v13.sql +0 -0
  49. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v14.sql +0 -0
  50. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v15.sql +0 -0
  51. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v2.sql +0 -0
  52. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v3.sql +0 -0
  53. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v4.sql +0 -0
  54. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v5.sql +0 -0
  55. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v6.sql +0 -0
  56. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v7.sql +0 -0
  57. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v8.sql +0 -0
  58. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/appdb_schemas/schema_v9.sql +0 -0
  59. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/application.py +0 -0
  60. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/backports/__init__.py +0 -0
  61. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/backups.py +0 -0
  62. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/config/__init__.py +0 -0
  63. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/config/defaults.py +0 -0
  64. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/config/validators.py +0 -0
  65. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/const.py +0 -0
  66. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/datastructures.py +0 -0
  67. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/device.py +0 -0
  68. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/endpoint.py +0 -0
  69. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/event/__init__.py +0 -0
  70. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/event/event_base.py +0 -0
  71. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/exceptions.py +0 -0
  72. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/group.py +0 -0
  73. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/listeners.py +0 -0
  74. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/image.py +0 -0
  75. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/json_schemas.py +0 -0
  76. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/manager.py +0 -0
  77. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/providers.py +0 -0
  78. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/ota/validators.py +0 -0
  79. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/profiles/__init__.py +0 -0
  80. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/profiles/zgp.py +0 -0
  81. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/profiles/zha.py +0 -0
  82. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/profiles/zll.py +0 -0
  83. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/py.typed +0 -0
  84. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/__init__.py +0 -0
  85. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/registry.py +0 -0
  86. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/v2/__init__.py +0 -0
  87. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/v2/homeassistant/__init__.py +0 -0
  88. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/v2/homeassistant/binary_sensor.py +0 -0
  89. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/v2/homeassistant/number.py +0 -0
  90. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/quirks/v2/homeassistant/sensor.py +0 -0
  91. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/serial.py +0 -0
  92. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/state.py +0 -0
  93. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/topology.py +0 -0
  94. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/types/__init__.py +0 -0
  95. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/types/basic.py +0 -0
  96. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/types/named.py +0 -0
  97. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/types/struct.py +0 -0
  98. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/typing.py +0 -0
  99. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/util.py +0 -0
  100. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/__init__.py +0 -0
  101. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/__init__.py +0 -0
  102. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/closures.py +0 -0
  103. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/general.py +0 -0
  104. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/general_const.py +0 -0
  105. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/greenpower.py +0 -0
  106. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/homeautomation.py +0 -0
  107. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/hvac.py +0 -0
  108. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/lighting.py +0 -0
  109. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/lightlink.py +0 -0
  110. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/manufacturer_specific.py +0 -0
  111. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/measurement.py +0 -0
  112. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/protocol.py +0 -0
  113. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/security.py +0 -0
  114. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/smartenergy.py +0 -0
  115. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/clusters/wwah.py +0 -0
  116. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/foundation.py +0 -0
  117. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zcl/helpers.py +0 -0
  118. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zdo/__init__.py +0 -0
  119. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zdo/types.py +0 -0
  120. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zgp/__init__.py +0 -0
  121. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy/zgp/types.py +0 -0
  122. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy.egg-info/SOURCES.txt +0 -0
  123. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy.egg-info/dependency_links.txt +0 -0
  124. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy.egg-info/requires.txt +0 -0
  125. {zigpy-1.2.1 → zigpy-1.2.2}/zigpy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zigpy
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Library implementing a Zigbee stack
5
5
  Author-email: Russell Cloran <rcloran@gmail.com>
6
6
  License: GPL-3.0
@@ -61,6 +61,21 @@ class OtaImageWithMetadata(t.BaseDataclassMixin):
61
61
  metadata: zigpy.ota.providers.BaseOtaImageMetadata
62
62
  firmware: BaseOTAImage | None
63
63
 
64
+ def __repr__(self) -> str:
65
+ if self.firmware is not None:
66
+ firmware_repr = (
67
+ f"<{type(self.firmware).__name__}: "
68
+ f"{self.firmware.header.image_size} bytes>"
69
+ )
70
+ else:
71
+ firmware_repr = "None"
72
+
73
+ return (
74
+ f"{type(self).__name__}("
75
+ f"metadata={self.metadata!r}, "
76
+ f"firmware={firmware_repr})"
77
+ )
78
+
64
79
  @property
65
80
  def version(self) -> int:
66
81
  return self.metadata.file_version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zigpy
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Library implementing a Zigbee stack
5
5
  Author-email: Russell Cloran <rcloran@gmail.com>
6
6
  License: GPL-3.0
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
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
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