mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix Shelly WallDisplay device power (#114071)
This commit is contained in:
parent
ce12d45b50
commit
ef3ab54f1d
@ -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…
x
Reference in New Issue
Block a user