mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix Shelly WallDisplay device power (#114071)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user