File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
homeassistant/components/teslemetry
tests/components/teslemetry/snapshots Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ class TeslemetryBinarySensorEntityDescription(BinarySensorEntityDescription):
125
125
key = "charge_state_conn_charge_cable" ,
126
126
polling = True ,
127
127
polling_value_fn = lambda x : x != "<invalid>" ,
128
+ streaming_listener = lambda vehicle , callback : vehicle .listen_ChargingCableType (
129
+ lambda value : callback (value != "Unknown" )
130
+ ),
128
131
entity_category = EntityCategory .DIAGNOSTIC ,
129
132
device_class = BinarySensorDeviceClass .CONNECTIVITY ,
130
133
),
Original file line number Diff line number Diff line change 673
673
'last_changed': <ANY>,
674
674
'last_reported': <ANY>,
675
675
'last_updated': <ANY>,
676
- 'state': 'on ',
676
+ 'state': 'unknown ',
677
677
})
678
678
# ---
679
679
# name: test_binary_sensor[binary_sensor.test_charge_enable_request-entry]
3374
3374
'last_changed': <ANY>,
3375
3375
'last_reported': <ANY>,
3376
3376
'last_updated': <ANY>,
3377
- 'state': 'on ',
3377
+ 'state': 'unknown ',
3378
3378
})
3379
3379
# ---
3380
3380
# name: test_binary_sensor_refresh[binary_sensor.test_charge_enable_request-statealt]
You can’t perform that action at this time.
0 commit comments