Private Member Functions | |
| None | _make_disconnected (self, *core_Event _) |
Private Attributes | |
| _event_is_on | |
| _ignore_events | |
| _is_connected | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.unifi.entity.UnifiEntity | |
| api | |
| entity_description | |
| hub | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Representation of a UniFi scanner.
Definition at line 234 of file device_tracker.py.
|
private |
No heart beat by device.
Definition at line 286 of file device_tracker.py.
| None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.async_added_to_hass | ( | self | ) |
Register callbacks.
Reimplemented from homeassistant.components.unifi.entity.UnifiEntity.
Definition at line 342 of file device_tracker.py.
| None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.async_event_callback | ( | self, | |
| Event | event | ||
| ) |
Event subscription callback.
Definition at line 323 of file device_tracker.py.
| None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.async_initiate_state | ( | self | ) |
Initiate entity state. Initiate is_connected.
Reimplemented from homeassistant.components.unifi.entity.UnifiEntity.
Definition at line 244 of file device_tracker.py.
| None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.async_update_state | ( | self, | |
| ItemEvent | event, | ||
| str | obj_id | ||
| ) |
Update entity state. Remove heartbeat check if hub connection state has changed and entity is unavailable. Update is_connected. Schedule new heartbeat check if connected.
Reimplemented from homeassistant.components.unifi.entity.UnifiEntity.
Definition at line 292 of file device_tracker.py.
| None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.async_will_remove_from_hass | ( | self | ) |
Disconnect object when removed.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 353 of file device_tracker.py.
| Mapping[str, Any] | None homeassistant.components.unifi.device_tracker.UnifiScannerEntity.extra_state_attributes | ( | self | ) |
Return the client state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 359 of file device_tracker.py.
Return hostname of the device.
Definition at line 266 of file device_tracker.py.
Return the primary ip address of the device.
Definition at line 271 of file device_tracker.py.
| bool homeassistant.components.unifi.device_tracker.UnifiScannerEntity.is_connected | ( | self | ) |
Return true if the device is connected to the network.
Definition at line 261 of file device_tracker.py.
| str homeassistant.components.unifi.device_tracker.UnifiScannerEntity.mac_address | ( | self | ) |
Return the mac address of the device.
Definition at line 276 of file device_tracker.py.
| str homeassistant.components.unifi.device_tracker.UnifiScannerEntity.unique_id | ( | self | ) |
Return a unique ID.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 281 of file device_tracker.py.
|
private |
Definition at line 250 of file device_tracker.py.
|
private |
Definition at line 251 of file device_tracker.py.
|
private |
Definition at line 252 of file device_tracker.py.