Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flags to EntityDescriptions in Tessie #105847

Merged
merged 4 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jpbede marked this conversation as resolved.
Show resolved Hide resolved


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
jpbede marked this conversation as resolved.
Show resolved Hide resolved


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