Fix Shelly WallDisplay device power (#114071)

This commit is contained in:
Shay Levy 2024-03-23 22:44:53 +02:00 committed by GitHub
parent ce12d45b50
commit ef3ab54f1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ RPC_SENSORS: Final = {
entity_category=EntityCategory.DIAGNOSTIC,
),
"external_power": RpcBinarySensorDescription(
key="devicepower:0",
key="devicepower",
sub_key="external",
name="External power",
value=lambda status, _: status["present"],

View file

@ -934,7 +934,7 @@ RPC_SENSORS: Final = {
state_class=SensorStateClass.MEASUREMENT,
),
"battery": RpcSensorDescription(
key="devicepower:0",
key="devicepower",
sub_key="battery",
name="Battery",
native_unit_of_measurement=PERCENTAGE,