Skip to content

Commit

Permalink
🏷️ Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
anarion80 committed Mar 16, 2024
1 parent 4fc6b8c commit 4b16315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/tech/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def get_state(self, device: dict[str, Any]) -> Any:
"""Get the state of the device."""


class TileTemperatureSensor(TileSensor, SensorEntity):
class TileTemperatureSensor(SensorEntity, TileSensor):
"""Representation of a Tile Temperature Sensor."""

def __init__(
Expand Down Expand Up @@ -647,7 +647,7 @@ def get_state(self, device: dict[str, Any]) -> str:
return device[CONF_PARAMS]["widget2"][VALUE] / 10


class TileValveSensor(TileSensor, SensorEntity):
class TileValveSensor(SensorEntity, TileSensor):
"""Representation of a Tile Valve Sensor."""

def __init__(
Expand Down Expand Up @@ -699,7 +699,7 @@ def update_properties(self, device: dict[str, Any]) -> None:
self.attrs["setTemp"] = device[CONF_PARAMS]["setTemp"]


class TileMixingValveSensor(TileSensor, SensorEntity):
class TileMixingValveSensor(SensorEntity, TileSensor):
"""Representation of a Tile Mixing Valve Sensor."""

_attr_native_unit_of_measurement = PERCENTAGE
Expand Down

0 comments on commit 4b16315

Please sign in to comment.