Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bellows/zigbee/repairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def update_tx_power(ezsp: EZSP, tx_power: int) -> bool:
rsp = await ezsp.getTokenData(token=t.NV3KeyId.NVM3KEY_STACK_NODE_DATA, index=0)
assert t.sl_Status.from_ember_status(rsp.status) == t.sl_Status.OK
except (InvalidCommandError, AttributeError, AssertionError):
LOGGER.warning("NV3 interface not available in this firmware, please upgrade!")
LOGGER.debug("NV3 interface not available in this firmware, please upgrade!")
return False

token, remaining = t.NV3StackNodeData.deserialize(rsp.value)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_zigbee_repairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def test_update_tx_power(ezsp_f: EZSP, caplog) -> None:

# Test 1: NV3 interface unavailable
ezsp_f.getTokenData = AsyncMock(side_effect=InvalidCommandError())
with caplog.at_level(logging.WARNING):
with caplog.at_level(logging.DEBUG):
assert await repairs.update_tx_power(ezsp_f, tx_power=10) is False
assert "NV3 interface not available in this firmware" in caplog.text

Expand Down
Loading