mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add Starlink connectivity binary sensor (#133184)
Co-authored-by: David Rapan <david@rapan.cz> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
8579456895
commit
34a229af52
@ -65,6 +65,7 @@ BINARY_SENSORS = [
|
||||
key="currently_obstructed",
|
||||
translation_key="currently_obstructed",
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda data: data.status["currently_obstructed"],
|
||||
),
|
||||
StarlinkBinarySensorEntityDescription(
|
||||
@ -114,4 +115,9 @@ BINARY_SENSORS = [
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda data: data.alert["alert_unexpected_location"],
|
||||
),
|
||||
StarlinkBinarySensorEntityDescription(
|
||||
key="connection",
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
value_fn=lambda data: data.status["state"] == "CONNECTED",
|
||||
),
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user