1 """Handle August connection setup and authentication."""
5 from yalexs.const
import DEFAULT_BRAND
6 from yalexs.manager.gateway
import Gateway
11 CONF_ACCESS_TOKEN_CACHE_FILE,
19 """Handle the connection to August."""
23 assert self._config
is not None
25 CONF_BRAND: self._config.
get(CONF_BRAND, DEFAULT_BRAND),
26 CONF_LOGIN_METHOD: self._config[CONF_LOGIN_METHOD],
27 CONF_USERNAME: self._config[CONF_USERNAME],
28 CONF_INSTALL_ID: self._config.
get(CONF_INSTALL_ID),
29 CONF_ACCESS_TOKEN_CACHE_FILE: self._access_token_cache_file,
dict[str, Any] config_entry(self)
web.Response get(self, web.Request request, str config_key)