Class which queries a Xiaomi Mi router.
Adapted from Luci scanner.
Definition at line 39 of file device_tracker.py.
◆ __init__()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.__init__ |
( |
|
self, |
|
|
|
config |
|
) |
| |
◆ _retrieve_list_with_retry()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner._retrieve_list_with_retry |
( |
|
self | ) |
|
|
private |
Retrieve the device list with a retry if token is invalid.
Return the list if successful.
Definition at line 89 of file device_tracker.py.
◆ _store_result()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner._store_result |
( |
|
self, |
|
|
|
result |
|
) |
| |
|
private |
Extract and store the device list in self.last_results.
Definition at line 103 of file device_tracker.py.
◆ _update_info()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner._update_info |
( |
|
self | ) |
|
|
private |
Ensure the information from the router are up to date.
Returns true if scanning successful.
Definition at line 75 of file device_tracker.py.
◆ get_device_name()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.get_device_name |
( |
|
self, |
|
|
|
device |
|
) |
| |
Return the name of the given device or None if we don't know.
Definition at line 62 of file device_tracker.py.
◆ scan_devices()
| def homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.scan_devices |
( |
|
self | ) |
|
Scan for new devices and return a list with found device IDs.
Definition at line 57 of file device_tracker.py.
◆ host
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.host |
◆ last_results
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.last_results |
◆ mac2name
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.mac2name |
◆ password
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.password |
◆ success_init
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.success_init |
◆ token
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.token |
◆ username
| homeassistant.components.xiaomi.device_tracker.XiaomiDeviceScanner.username |
The documentation for this class was generated from the following file: