Fix Shelly WallDisplay device power (#114071)
This commit is contained in:
parent
ce12d45b50
commit
ef3ab54f1d
2 changed files with 2 additions and 2 deletions
|
@ -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"],
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue