1 """Support for Goal Zero Yeti Sensors."""
3 from __future__
import annotations
5 from typing
import cast
8 BinarySensorDeviceClass,
10 BinarySensorEntityDescription,
16 from .coordinator
import GoalZeroConfigEntry
17 from .entity
import GoalZeroEntity
21 BINARY_SENSOR_TYPES: tuple[BinarySensorEntityDescription, ...] = (
24 translation_key=
"backlight",
28 translation_key=
"app_online",
29 device_class=BinarySensorDeviceClass.CONNECTIVITY,
30 entity_category=EntityCategory.DIAGNOSTIC,
34 device_class=BinarySensorDeviceClass.BATTERY_CHARGING,
38 translation_key=
"input_detected",
39 device_class=BinarySensorDeviceClass.POWER,
46 entry: GoalZeroConfigEntry,
47 async_add_entities: AddEntitiesCallback,
49 """Set up the Goal Zero Yeti sensor."""
52 for description
in BINARY_SENSOR_TYPES
57 """Representation of a Goal Zero Yeti sensor."""
61 """Return True if the service is on."""
None async_setup_entry(HomeAssistant hass, GoalZeroConfigEntry entry, AddEntitiesCallback async_add_entities)