Fix battery_is_charging sensor on system bridge (#58980)

pull/58995/head
Sergio Gutierrez Alvarez 2021-11-03 05:28:04 -06:00 committed by GitHub
parent a7d958ae8a
commit 1af621ef13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ BATTERY_BINARY_SENSOR_TYPES: tuple[SystemBridgeBinarySensorEntityDescription, ..
key="battery_is_charging",
name="Battery Is Charging",
device_class=DEVICE_CLASS_BATTERY_CHARGING,
value=lambda bridge: bridge.information.updates.available,
value=lambda bridge: bridge.battery.isCharging,
),
)