Skip to content

Commit 9d8ffb1

Browse files
committed
Fix typo in command name
1 parent 0d1a1bf commit 9d8ffb1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bellows/ezsp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,4 +851,4 @@ async def xncp_set_route_table_entry(
851851
async def xncp_get_tx_power_info(self, country_code: str) -> GetTxPowerInfoRsp:
852852
"""Get maximum and recommended TX power for a country (ISO 3166-1 alpha-2)."""
853853
code = country_code.upper().encode("ascii")
854-
return await self.send_xncp_frame(xncp.GetMaxTxPowerReq(country_code=code))
854+
return await self.send_xncp_frame(xncp.GetTxPowerInfoReq(country_code=code))

bellows/zigbee/application.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ async def _set_tx_power(self, tx_power: float) -> float | None:
174174
actual_power = int(tx_power)
175175
await self._ezsp.setRadioPower(power=actual_power)
176176

177-
# We intentionally do not reset after changing the TX power
177+
# We intentionally do not reset after changing the TX power. Instead, we just
178+
# persist the changes to NVRAM (if necessary), they will be reloaded on next
179+
# boot.
178180
await repairs.update_tx_power(self._ezsp, tx_power=actual_power)
179181

180182
return float(actual_power)

0 commit comments

Comments
 (0)