We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c802430 commit c4ddcd6Copy full SHA for c4ddcd6
homeassistant/components/teslemetry/binary_sensor.py
@@ -125,8 +125,8 @@ class TeslemetryBinarySensorEntityDescription(BinarySensorEntityDescription):
125
key="charge_state_conn_charge_cable",
126
polling=True,
127
polling_value_fn=lambda x: x != "<invalid>",
128
- streaming_listener=lambda vehicle, callback: vehicle.listen_ChargingCableType(
129
- lambda value: callback(value is not None and value != "Unknown")
+ streaming_listener=lambda vehicle, callback: vehicle.listen_DetailedChargeState(
+ lambda value: callback(None if value is None else value != "Disconnected")
130
),
131
entity_category=EntityCategory.DIAGNOSTIC,
132
device_class=BinarySensorDeviceClass.CONNECTIVITY,
0 commit comments