Skip to content

Commit

Permalink
Fix number mode for HA<2023.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe authored Jun 8, 2023
1 parent 5f3a27c commit d5492c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bmw_connected_drive/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BMWNumberEntityDescription(NumberEntityDescription, BMWRequiredKeysMixin):

is_available: Callable[[MyBMWVehicle], bool] = lambda _: False
dynamic_options: Callable[[MyBMWVehicle], list[str]] | None = None

mode: NumberMode | None = None # for HA<2023.6

NUMBER_TYPES: list[BMWNumberEntityDescription] = [
BMWNumberEntityDescription(
Expand Down

0 comments on commit d5492c1

Please sign in to comment.