Add method to request the Network/System status
Home screen method returns just the information about last added System(network). The method "request_network_status", should replace the homescreen method in order to obtain all the information about a system.
This commit is contained in:
@@ -29,6 +29,11 @@ def request_networks(blink):
|
|||||||
url = "{}/networks".format(blink.urls.base_url)
|
url = "{}/networks".format(blink.urls.base_url)
|
||||||
return http_get(blink, url)
|
return http_get(blink, url)
|
||||||
|
|
||||||
|
def request_network_status(blink, network):
|
||||||
|
"""Request network information."""
|
||||||
|
url = "{}/network/{}".format(blink.urls.base_url, network)
|
||||||
|
return http_get(blink, url)
|
||||||
|
|
||||||
|
|
||||||
def request_syncmodule(blink, network):
|
def request_syncmodule(blink, network):
|
||||||
"""Request sync module info."""
|
"""Request sync module info."""
|
||||||
|
|||||||
Reference in New Issue
Block a user