-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial implementation of cross-adapter network backup/restore * Use new zigpy JSON state serialization format * Increment frame counter during restore * Use old frame counter attribute * Make the baudrate configurable * Add an energy scan tool * Upgrade pre-commit deps * Allow energy scans to be performed using non-coordinator devices * Explicitly handle missing modules * Do not unnecessarily call `connect` * Remove `source`, since radio libraries will now provide it * Remove `click` from `setup.py` runtime dependencies * Explicitly import `importlib.util` * Always install the common radio libraries * Provide a way to increment the frame counter during restore * Indicate the current channel in the energy scan
- Loading branch information
Showing
6 changed files
with
142 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import logging | ||
|
||
TRACE = logging.DEBUG - 5 | ||
logging.addLevelName(TRACE, "TRACE") | ||
|
||
|
||
LOG_LEVELS = [logging.WARNING, logging.INFO, logging.DEBUG, TRACE] | ||
|
||
|
||
RADIO_TO_PACKAGE = { | ||
"ezsp": "bellows", | ||
"deconz": "zigpy_deconz", | ||
"xbee": "zigpy_xbee", | ||
"zigate": "zigpy_zigate", | ||
"znp": "zigpy_znp", | ||
} | ||
|
||
|
||
RADIO_LOGGING_CONFIGS = { | ||
"ezsp": [ | ||
{ | ||
"bellows.zigbee.application": logging.INFO, | ||
"bellows.ezsp": logging.INFO, | ||
}, | ||
{ | ||
"bellows.zigbee.application": logging.DEBUG, | ||
"bellows.ezsp": logging.DEBUG, | ||
}, | ||
], | ||
"deconz": [ | ||
{ | ||
"zigpy_deconz.zigbee.application": logging.INFO, | ||
"zigpy_deconz.api": logging.INFO, | ||
}, | ||
{ | ||
"zigpy_deconz.zigbee.application": logging.DEBUG, | ||
"zigpy_deconz.api": logging.DEBUG, | ||
}, | ||
], | ||
"xbee": [ | ||
{ | ||
"zigpy_xbee.zigbee.application": logging.INFO, | ||
"zigpy_xbee.api": logging.INFO, | ||
}, | ||
{ | ||
"zigpy_xbee.zigbee.application": logging.DEBUG, | ||
"zigpy_xbee.api": logging.DEBUG, | ||
}, | ||
], | ||
"zigate": [ | ||
{ | ||
"zigpy_zigate": logging.INFO, | ||
}, | ||
{ | ||
"zigpy_zigate": logging.DEBUG, | ||
}, | ||
], | ||
"znp": [ | ||
{ | ||
"zigpy_znp": logging.INFO, | ||
}, | ||
{ | ||
"zigpy_znp": logging.DEBUG, | ||
}, | ||
{ | ||
"zigpy_znp": TRACE, | ||
}, | ||
], | ||
} | ||
|
||
RADIO_TO_PYPI = {name: mod.replace("_", "-") for name, mod in RADIO_TO_PACKAGE.items()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.