* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Add temperature sensors for device
* Move to single line
* Use right reference
* Always return a value
* Update tests
* Use slugify for id name
* Return default value if not present
* Make _device_temperature return value
* Add default value if temperatures is None
* Set value to go over all code paths
* Add test for no matching temperatures
* make first part deterministic
* Add Traffic Rule switches to UniFi Network
* Retrieve Fix unifi traffic rule switches
Poll for traffic rule updates; have immediate feedback in the UI for modifying traffic rules
* Remove default values for unifi entity; Remove unnecessary code
* Begin updating traffic rule unit tests
* For the mock get request, allow for meta and data properties to not be appended to support v2 api requests
Fix traffic rule unit tests;
* inspect path to determine json response instead of passing an argument
* Remove entity id parameter from tests; remove unused code; rename traffic rule unique ID prefix
* Remove parameter with default.
* More code removal;
* Rename copy/paste variable; remove commented code; remove duplicate default code
---------
Co-authored-by: ViViDboarder <ViViDboarder@gmail.com>
* Add sensors for Unifi latency
* Add needed guard and casting
* Use new types
* Add WAN2 support
* Add literals
* Make ids for WAN and WAN2 unique
* Make methods general
* Update sensor.py
* add more typing
* Simplify usage make_wan_latency_sensors
* Simplify further
* Move latency entity creation to method
* Make method internal
* simplify tests
* Apply feedback
* Reduce boiler copied code and add support function
* Add external method for share logic between
* Remove none
* Add more tests
* Apply feedback and change code to improve code coverage
* Make sure all mock_device_registry are used with usefixtuers
* Make sure to use name with fixtures and rename functions to start with fixture_
* Streamline config_entry_setup
* Type all *_payload
* Mark @pytest.mark.usefixtures("mock_default_requests")
* Clean up unnecessary newlines after docstring