|
@@ -57,10 +57,6 @@ def save_config():
|
57
|
57
|
config.write(conf_file)
|
58
|
58
|
|
59
|
59
|
|
60
|
|
-def get_mac():
|
61
|
|
- return get_config_dict()['heatpump', 'mac_address']
|
62
|
|
-
|
63
|
|
-
|
64
|
60
|
def mac_address_init():
|
65
|
61
|
from netifaces import gateways, ifaddresses, AF_INET, AF_LINK
|
66
|
62
|
|
|
@@ -112,6 +108,10 @@ async def config_route(request, *args, **kwargs):
|
112
|
108
|
return await set_config(request)
|
113
|
109
|
|
114
|
110
|
|
|
111
|
+def get_mac():
|
|
112
|
+ return config.get('heatpump','mac_address')
|
|
113
|
+
|
|
114
|
+
|
115
|
115
|
async def mac_route(request, *args, **kwargs):
|
116
|
116
|
if request['method'] == 'GET':
|
117
|
117
|
return PlainTextResponse(get_mac())
|