Skip to content

Commit b00c838

Browse files
authored
Merge pull request #143 from puddly/rc
0.18.1 Release
2 parents 0736090 + 439ecd2 commit b00c838

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
author_email="[email protected]",
1818
license="GPL-3.0",
1919
packages=find_packages(exclude=["tests", "tests.*"]),
20-
install_requires=["zigpy>=0.51.0"],
20+
install_requires=["zigpy>=0.56.0"],
2121
tests_require=["pytest", "asynctest", "pytest-asyncio"],
2222
)

zigpy_xbee/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAJOR_VERSION = 0
22
MINOR_VERSION = 18
3-
PATCH_VERSION = "0"
3+
PATCH_VERSION = "1"
44
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
55
__version__ = f"{__short_version__}.{PATCH_VERSION}"

zigpy_xbee/zigbee/application.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ async def _move_network_to_channel(
174174
scan_bitmask = 1 << (new_channel - 11)
175175
await self._api._queued_at("SC", scan_bitmask)
176176

177+
async def energy_scan(
178+
self, channels: zigpy.types.Channels, duration_exp: int, count: int
179+
) -> dict[int, float]:
180+
"""Runs an energy detection scan and returns the per-channel scan results."""
181+
182+
LOGGER.warning("Coordinator does not support energy scanning")
183+
return {c: 0 for c in channels}
184+
177185
async def force_remove(self, dev):
178186
"""Forcibly remove device from NCP."""
179187
pass
@@ -255,7 +263,7 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
255263
f"Failed to deliver packet: {v!r}", status=v
256264
)
257265

258-
@zigpy.util.retryable_request
266+
@zigpy.util.retryable_request()
259267
def remote_at_command(
260268
self, nwk, cmd_name, *args, apply_changes=True, encryption=True
261269
):

0 commit comments

Comments
 (0)