Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #141 from Thomas55555/rework-headlight-mode
Browse files Browse the repository at this point in the history
rework headlight mode
  • Loading branch information
Thomas55555 authored Nov 6, 2021
2 parents 0762f4c + 48f9b3a commit de513b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/husqvarna_automower/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def device_info(self) -> DeviceInfo:
@property
def name(self) -> str:
"""Return the name of the entity."""
return f"{self.mower_name}_headlight_mode"
return f"{self.mower_name} Headlight mode"

@property
def unique_id(self) -> str:
"""Return a unique identifier for this entity."""
return f"{self.mower_id}_headlight_mode_select"
return f"{self.mower_id}_headlight_mode"

@property
def options(self) -> list[str]:
Expand All @@ -59,6 +59,7 @@ def options(self) -> list[str]:

@property
def icon(self) -> str:
"""Return a the icon for the entity."""
return "mdi:car-light-high"

async def async_select_option(self, option: str) -> None:
Expand Down

0 comments on commit de513b9

Please sign in to comment.