Fetch integration list from next branch for analytics insights (#137250)
Fetch integration list from next branchpull/138021/head^2
parent
fa40d02a07
commit
14e66ffef4
|
@ -8,7 +8,7 @@ from python_homeassistant_analytics import (
|
||||||
HomeassistantAnalyticsClient,
|
HomeassistantAnalyticsClient,
|
||||||
HomeassistantAnalyticsConnectionError,
|
HomeassistantAnalyticsConnectionError,
|
||||||
)
|
)
|
||||||
from python_homeassistant_analytics.models import IntegrationType
|
from python_homeassistant_analytics.models import Environment, IntegrationType
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
||||||
|
@ -81,7 +81,7 @@ class HomeassistantAnalyticsConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
addons = await client.get_addons()
|
addons = await client.get_addons()
|
||||||
integrations = await client.get_integrations()
|
integrations = await client.get_integrations(Environment.NEXT)
|
||||||
custom_integrations = await client.get_custom_integrations()
|
custom_integrations = await client.get_custom_integrations()
|
||||||
except HomeassistantAnalyticsConnectionError:
|
except HomeassistantAnalyticsConnectionError:
|
||||||
LOGGER.exception("Error connecting to Home Assistant analytics")
|
LOGGER.exception("Error connecting to Home Assistant analytics")
|
||||||
|
@ -165,7 +165,7 @@ class HomeassistantAnalyticsOptionsFlowHandler(OptionsFlow):
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
addons = await client.get_addons()
|
addons = await client.get_addons()
|
||||||
integrations = await client.get_integrations()
|
integrations = await client.get_integrations(Environment.NEXT)
|
||||||
custom_integrations = await client.get_custom_integrations()
|
custom_integrations = await client.get_custom_integrations()
|
||||||
except HomeassistantAnalyticsConnectionError:
|
except HomeassistantAnalyticsConnectionError:
|
||||||
LOGGER.exception("Error connecting to Home Assistant analytics")
|
LOGGER.exception("Error connecting to Home Assistant analytics")
|
||||||
|
|
Loading…
Reference in New Issue