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:
Nikolay Vasilchuk 2023-12-20 11:51:46 +03:00 committed by GitHub
parent c7f6ab2457
commit 33bcf70bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class StarlineAccount:
model=device.typename,
name=device.name,
sw_version=device.fw_version,
configuration_url="https://starline-online.ru/",
)
@staticmethod

View File

@ -104,6 +104,9 @@
},
"horn": {
"name": "Horn"
},
"service_mode": {
"name": "Service mode"
}
},
"button": {

View File

@ -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",
),
)