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 39b64b0 commit 458aa3cCopy full SHA for 458aa3c
homeassistant/components/teslemetry/binary_sensor.py
@@ -126,7 +126,7 @@ class TeslemetryBinarySensorEntityDescription(BinarySensorEntityDescription):
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 != "Unknown")
+ lambda value: callback(value is not None and value != "Unknown")
130
),
131
entity_category=EntityCategory.DIAGNOSTIC,
132
device_class=BinarySensorDeviceClass.CONNECTIVITY,
0 commit comments