mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Add Starline Service Mode switch (#105741)
* Starline Service Mode switch * Update homeassistant/components/starline/strings.json Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
c7f6ab2457
commit
33bcf70bf3
@ -136,6 +136,7 @@ class StarlineAccount:
|
||||
model=device.typename,
|
||||
name=device.name,
|
||||
sw_version=device.fw_version,
|
||||
configuration_url="https://starline-online.ru/",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
@ -104,6 +104,9 @@
|
||||
},
|
||||
"horn": {
|
||||
"name": "Horn"
|
||||
},
|
||||
"service_mode": {
|
||||
"name": "Service mode"
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
|
@ -56,6 +56,12 @@ SWITCH_TYPES: tuple[StarlineSwitchEntityDescription, ...] = (
|
||||
icon_on="mdi:bullhorn-outline",
|
||||
icon_off="mdi:bullhorn-outline",
|
||||
),
|
||||
StarlineSwitchEntityDescription(
|
||||
key="valet",
|
||||
translation_key="service_mode",
|
||||
icon_on="mdi:wrench-clock",
|
||||
icon_off="mdi:car-wrench",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user