Skip to content

Commit b62cfb3

Browse files
authored
Disable energy scanning (#142)
1 parent 20e5d5d commit b62cfb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

zigpy_xbee/zigbee/application.py

Lines changed: 8 additions & 0 deletions
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

0 commit comments

Comments
 (0)