Skip to content

Commit

Permalink
Update binary_sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-dc committed Jan 25, 2022
1 parent 31a65a2 commit 7a3bec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/volkswagen_we_connect_id/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from weconnect import weconnect
from weconnect.elements.plug_status import PlugStatus
from weconnect.elements.window_heating_status import WindowHeatingStatus
from weconnect.elements.charging_settings import ChargingSettings

from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
Expand Down Expand Up @@ -73,6 +74,7 @@ class VolkswagenIdBinaryEntityDescription(BinarySensorEntityDescription):
key="autoUnlockPlugWhenCharged",
name="Auto Unlock Plug When Charged",
local_address="/charging/chargingSettings/autoUnlockPlugWhenCharged",
on_value=ChargingSettings.UnlockPlugState,
),
VolkswagenIdBinaryEntityDescription(
key="plugConnectionState",
Expand Down

0 comments on commit 7a3bec3

Please sign in to comment.