1 """Support for Netgear LTE binary sensors."""
3 from __future__
import annotations
6 BinarySensorDeviceClass,
8 BinarySensorEntityDescription,
14 from .
import NetgearLTEConfigEntry
15 from .entity
import LTEEntity
17 BINARY_SENSORS: tuple[BinarySensorEntityDescription, ...] = (
20 translation_key=
"roaming",
21 entity_registry_enabled_default=
False,
22 entity_category=EntityCategory.DIAGNOSTIC,
26 translation_key=
"wire_connected",
27 entity_category=EntityCategory.DIAGNOSTIC,
28 device_class=BinarySensorDeviceClass.CONNECTIVITY,
31 key=
"mobile_connected",
32 translation_key=
"mobile_connected",
33 entity_category=EntityCategory.DIAGNOSTIC,
34 device_class=BinarySensorDeviceClass.CONNECTIVITY,
41 entry: NetgearLTEConfigEntry,
42 async_add_entities: AddEntitiesCallback,
44 """Set up the Netgear LTE binary sensor."""
51 """Netgear LTE binary sensor entity."""
55 """Return true if the binary sensor is on."""
None async_setup_entry(HomeAssistant hass, NetgearLTEConfigEntry entry, AddEntitiesCallback async_add_entities)