diff --git a/custom_components/smart_maic/__init__.py b/custom_components/smart_maic/__init__.py index dd00887..f180dc7 100644 --- a/custom_components/smart_maic/__init__.py +++ b/custom_components/smart_maic/__init__.py @@ -1,4 +1,5 @@ """The Smart MAIC integration.""" + from __future__ import annotations import logging @@ -26,8 +27,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Smart MAIC from a config entry.""" - _LOGGER.debug(f"Smart MAIC entry data: {entry.data}") - if not await mqtt.async_wait_for_mqtt_client(hass): raise ConfigEntryNotReady("MQTT is not available") diff --git a/custom_components/smart_maic/config_flow.py b/custom_components/smart_maic/config_flow.py index 6d71497..af281cd 100644 --- a/custom_components/smart_maic/config_flow.py +++ b/custom_components/smart_maic/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Smart MAIC integration.""" + from __future__ import annotations import logging @@ -79,7 +80,6 @@ async def async_step_user(self, user_input=None): await self.async_set_unique_id(data[DEVICE_ID]) self._abort_if_unique_id_configured() - _LOGGER.debug(f"Creating entry: {data}") return self.async_create_entry(title=info["title"], data=data) except ConnectionError: errors["base"] = "cannot_connect" diff --git a/custom_components/smart_maic/const.py b/custom_components/smart_maic/const.py index 30b3f02..13ef252 100644 --- a/custom_components/smart_maic/const.py +++ b/custom_components/smart_maic/const.py @@ -1,4 +1,5 @@ """Constants for the Smart Maic integration.""" + from homeassistant.const import CONF_IP_ADDRESS, CONF_PIN DOMAIN = "smart_maic" diff --git a/custom_components/smart_maic/coordinator.py b/custom_components/smart_maic/coordinator.py index 419ca44..8992b2c 100644 --- a/custom_components/smart_maic/coordinator.py +++ b/custom_components/smart_maic/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the Smart MAIC integration.""" + from __future__ import annotations import logging diff --git a/custom_components/smart_maic/entity.py b/custom_components/smart_maic/entity.py index a968a03..1d4e57f 100644 --- a/custom_components/smart_maic/entity.py +++ b/custom_components/smart_maic/entity.py @@ -1,4 +1,5 @@ """Base entity for the Smart MAIC integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/custom_components/smart_maic/number.py b/custom_components/smart_maic/number.py index dc3ddb1..33007cf 100644 --- a/custom_components/smart_maic/number.py +++ b/custom_components/smart_maic/number.py @@ -2,6 +2,7 @@ The number component allows control of charging consumption. """ + from __future__ import annotations import sys diff --git a/custom_components/smart_maic/sensor.py b/custom_components/smart_maic/sensor.py index 9fd7d3e..258ee27 100644 --- a/custom_components/smart_maic/sensor.py +++ b/custom_components/smart_maic/sensor.py @@ -2,6 +2,7 @@ The sensor component creates multipe sensors regarding Smart MAIC status. """ + from __future__ import annotations from typing import cast diff --git a/custom_components/smart_maic/smart_maic.py b/custom_components/smart_maic/smart_maic.py index 03e8ce4..eaadfd8 100644 --- a/custom_components/smart_maic/smart_maic.py +++ b/custom_components/smart_maic/smart_maic.py @@ -1,4 +1,5 @@ """Smart MAIC integration.""" + from __future__ import annotations import logging diff --git a/custom_components/smart_maic/switch.py b/custom_components/smart_maic/switch.py index c9825c0..46e4c4d 100644 --- a/custom_components/smart_maic/switch.py +++ b/custom_components/smart_maic/switch.py @@ -2,6 +2,7 @@ The switch component allows control of charging dry switch. """ + from __future__ import annotations from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription