Add entity translations to Goalzero (#95310)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
835982ebe5
commit
62802dd487
5 changed files with 87 additions and 28 deletions
|
@ -21,23 +21,22 @@ PARALLEL_UPDATES = 0
|
|||
BINARY_SENSOR_TYPES: tuple[BinarySensorEntityDescription, ...] = (
|
||||
BinarySensorEntityDescription(
|
||||
key="backlight",
|
||||
name="Backlight",
|
||||
translation_key="backlight",
|
||||
icon="mdi:clock-digital",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="app_online",
|
||||
name="App online",
|
||||
translation_key="app_online",
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="isCharging",
|
||||
name="Charging",
|
||||
device_class=BinarySensorDeviceClass.BATTERY_CHARGING,
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="inputDetected",
|
||||
name="Input detected",
|
||||
translation_key="input_detected",
|
||||
device_class=BinarySensorDeviceClass.POWER,
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue