This PR is just to add the possibility to get the router mac-address from the label_mac NVRAM key. This can be used to allow configuration of multiple devices in Home Assistant integration.
I also implemented this 2 changes for async_get_nvram command:
1) added support for cached data (to avoid multiple call to the router in cached period)
2) fixed used regex expression adding ^ at the begin, to avoid getting wrong values (e.g the MODEL command return the key cfg_obmodel instead of key model from NVRAM)
This PR is just to add the possibility to get the router mac-address from the
label_mac
NVRAM key. This can be used to allow configuration of multiple devices in Home Assistant integration.I also implemented this 2 changes for
async_get_nvram
command:1) added support for cached data (to avoid multiple call to the router in cached period) 2) fixed used regex expression adding
^
at the begin, to avoid getting wrong values (e.g theMODEL
command return the keycfg_obmodel
instead of keymodel
from NVRAM)Sorry if something here is wrong.