Skip to content

Commit

Permalink
v2.2.0 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 authored Oct 7, 2023
1 parent 13efcbc commit 34dc256
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions custom_components/ecotrend_ista/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"pyotp==2.8.0",
"marshmallow-enum==1.5.1"
],
"version": "v2.1.3"
}
"version": "v2.2.0"
}
6 changes: 3 additions & 3 deletions custom_components/ecotrend_ista/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 34dc256

Please sign in to comment.