From 49c85eeb2bb271b207d2ca910aeb8415810c775b Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 29 Jan 2023 22:01:05 +0100 Subject: [PATCH] Try to fix const import --- custom_components/versatile_thermostat/config_flow.py | 7 +++---- custom_components/versatile_thermostat/strings.json | 2 +- .../versatile_thermostat/translations/en.json | 2 +- .../versatile_thermostat/translations/fr.json | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/custom_components/versatile_thermostat/config_flow.py b/custom_components/versatile_thermostat/config_flow.py index 5c8a52b..27e1930 100644 --- a/custom_components/versatile_thermostat/config_flow.py +++ b/custom_components/versatile_thermostat/config_flow.py @@ -27,14 +27,13 @@ RegistryEntry, async_get, ) -from homeassistant.components.climate.const import DOMAIN as CLIMATE_DOMAIN -from homeassistant.components.climate import ClimateEntity -from homeassistant.components.switch.const import DOMAIN as SWITCH_DOMAIN +from homeassistant.components.climate import ClimateEntity, DOMAIN as CLIMATE_DOMAIN +from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN from homeassistant.components.input_boolean import ( DOMAIN as INPUT_BOOLEAN_DOMAIN, ) -from homeassistant.components.sensor.const import DOMAIN as SENSOR_DOMAIN +from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.components.input_number import ( DOMAIN as INPUT_NUMBER_DOMAIN, ) diff --git a/custom_components/versatile_thermostat/strings.json b/custom_components/versatile_thermostat/strings.json index e67adfa..1014654 100644 --- a/custom_components/versatile_thermostat/strings.json +++ b/custom_components/versatile_thermostat/strings.json @@ -202,7 +202,7 @@ "already_configured": "Device is already configured" } }, - "selectors": { + "selector": { "thermostat_type": { "options": { "thermostat_over_switch": "Thermostat over a switch", diff --git a/custom_components/versatile_thermostat/translations/en.json b/custom_components/versatile_thermostat/translations/en.json index e67adfa..1014654 100644 --- a/custom_components/versatile_thermostat/translations/en.json +++ b/custom_components/versatile_thermostat/translations/en.json @@ -202,7 +202,7 @@ "already_configured": "Device is already configured" } }, - "selectors": { + "selector": { "thermostat_type": { "options": { "thermostat_over_switch": "Thermostat over a switch", diff --git a/custom_components/versatile_thermostat/translations/fr.json b/custom_components/versatile_thermostat/translations/fr.json index d0180fb..dfb0e91 100644 --- a/custom_components/versatile_thermostat/translations/fr.json +++ b/custom_components/versatile_thermostat/translations/fr.json @@ -202,7 +202,7 @@ "already_configured": "Le device est déjà configuré" } }, - "selectors": { + "selector": { "thermostat_type": { "options": { "thermostat_over_switch": "Thermostat sur un switch",