Code quality improvements to UniFi integration (#45794)
* Do less inside try statements * Replace controller id with config entry id since it doesn't serve a purpose anymore * Improve how controller connection state is communicated in the client and device tracker Remove the need to disable arguments-differ lint * Remove broad exception handling from config flow I'm not sure there ever was a reason for this more than to catch all exceptions * Replace site string with constant for SSDP title_placeholders * Unload platforms in the defacto way * Noone reads the method descriptions * Improve file descriptions
This commit is contained in:
parent
2136b3013f
commit
83a75b02ea
9 changed files with 89 additions and 118 deletions
|
@ -4,8 +4,6 @@ import logging
|
|||
LOGGER = logging.getLogger(__package__)
|
||||
DOMAIN = "unifi"
|
||||
|
||||
CONTROLLER_ID = "{host}-{site}"
|
||||
|
||||
CONF_CONTROLLER = "controller"
|
||||
CONF_SITE_ID = "site"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue