|
@ -22,7 +22,7 @@ import zeroconf |
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------- |
|
|
# ------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
__version__ = (0, 4, 1) |
|
|
|
|
|
|
|
|
__version__ = (0, 4, 2) |
|
|
|
|
|
|
|
|
DESCRIPTION = "ESPurna OTA Manager v{}".format(".".join(str(x) for x in __version__)) |
|
|
DESCRIPTION = "ESPurna OTA Manager v{}".format(".".join(str(x) for x in __version__)) |
|
|
DISCOVERY_TIMEOUT = 10 |
|
|
DISCOVERY_TIMEOUT = 10 |
|
@ -113,9 +113,11 @@ class Listener: |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
hostname = info.server.split(".")[0] |
|
|
hostname = info.server.split(".")[0] |
|
|
|
|
|
addresses = info.parsed_addresses() |
|
|
|
|
|
|
|
|
device = { |
|
|
device = { |
|
|
"hostname": hostname.upper(), |
|
|
"hostname": hostname.upper(), |
|
|
"ip": socket.inet_ntoa(info.address), |
|
|
|
|
|
|
|
|
"ip": addresses[0] if addresses else info.host, |
|
|
"mac": "", |
|
|
"mac": "", |
|
|
"app_name": "", |
|
|
"app_name": "", |
|
|
"app_version": "", |
|
|
"app_version": "", |
|
|