diff --git a/custom_components/ecotrend_ista/entitys.py b/custom_components/ecotrend_ista/entity.py similarity index 100% rename from custom_components/ecotrend_ista/entitys.py rename to custom_components/ecotrend_ista/entity.py diff --git a/custom_components/ecotrend_ista/manifest.json b/custom_components/ecotrend_ista/manifest.json index 1f3ba3d..1b7f6b8 100644 --- a/custom_components/ecotrend_ista/manifest.json +++ b/custom_components/ecotrend_ista/manifest.json @@ -15,5 +15,5 @@ "pyotp==2.8.0", "marshmallow-enum==1.5.1" ], - "version": "v2.1.3" -} \ No newline at end of file + "version": "v2.2.0" +} diff --git a/custom_components/ecotrend_ista/sensor.py b/custom_components/ecotrend_ista/sensor.py index 13c57a8..c6eefed 100644 --- a/custom_components/ecotrend_ista/sensor.py +++ b/custom_components/ecotrend_ista/sensor.py @@ -28,7 +28,7 @@ ) from .const_schema import URL_SELECTORS from .coordinator import IstaDataUpdateCoordinator -from .entitys import SENSOR_TYPES, EcotrendSensorEntityDescription +from .entity import SENSOR_TYPES, EcotrendSensorEntityDescription _LOGGER = logging.getLogger(__name__) @@ -104,9 +104,9 @@ def __init__( # pylint: disable=logging-fstring-interpolation if hasattr(self, "_attr_native_unit_of_measurement"): - _LOGGER.debug(f"{description.data_type} {self.consum_value} {self._attr_native_unit_of_measurement}") + _LOGGER.debug(f"{description.data_type} {self.consum_value} {self._attr_native_unit_of_measurement}") # noqa: G004 elif hasattr(self, "unit_of_measurement"): - _LOGGER.debug(f"{description.data_type} {self.consum_value} {self.unit_of_measurement}") + _LOGGER.debug(f"{description.data_type} {self.consum_value} {self.unit_of_measurement}") # noqa: G004 @property def native_value(self) -> StateType: