core/homeassistant/components/unifi
wittypluck d94421e1a4
Reset UniFi bandwidth sensor when client misses heartbeat (#104522)
* Reset UniFi bandwidth sensor when client misses heartbeat

* Fix initialization sequence

* Code simplification: remove heartbeat_timedelta, unique_id and tracker logic

* Add unit tests

* Remove unused _is_connected attribute

* Remove redundant async_initiate_state

* Make is_connected_fn optional, heartbeat detection will only happen if not None

* Add checks on is_connected_fn
2024-01-14 15:19:43 +01:00
..
__init__.py
button.py
config_flow.py
const.py
controller.py
device_tracker.py
diagnostics.py
entity.py
errors.py
image.py
manifest.json
sensor.py
services.py
services.yaml
strings.json
switch.py
update.py