Skip to content

Commit

Permalink
Add SensorEntityDescription flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Dec 16, 2023
1 parent 887f9a2 commit c6e9a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/tessie/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class TessieBinarySensorEntityDescription(BinarySensorEntityDescription):
"""Describes Tessie binary sensor entity."""

is_on: Callable[..., bool] = lambda x: x
frozen = True
kw_only = True


DESCRIPTIONS: tuple[TessieBinarySensorEntityDescription, ...] = (
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/tessie/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class TessieSensorEntityDescription(SensorEntityDescription):
"""Describes Tessie Sensor entity."""

value_fn: Callable[[StateType], StateType] = lambda x: x
frozen = True
kw_only = True


DESCRIPTIONS: tuple[TessieSensorEntityDescription, ...] = (
Expand Down

0 comments on commit c6e9a3c

Please sign in to comment.