Fix ZHA power_factor attribute not initialized (#102133)

This commit is contained in:
TheJulianJES 2023-10-20 08:15:37 +02:00 committed by GitHub
parent c7b1e4186b
commit 92e625636a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -87,6 +87,7 @@ class ElectricalMeasurementClusterHandler(ClusterHandler):
"measurement_type": True,
"power_divisor": True,
"power_multiplier": True,
"power_factor": True,
}
async def async_update(self):

View file

@ -2088,11 +2088,6 @@ DEVICES = [
DEV_SIG_ENT_MAP_CLASS: "ElectricalMeasurementRMSVoltage",
DEV_SIG_ENT_MAP_ID: "sensor.lumi_lumi_plug_maus01_voltage",
},
("sensor", "00:11:22:33:44:55:66:77-1-2820-power_factor"): {
DEV_SIG_CLUSTER_HANDLERS: ["electrical_measurement"],
DEV_SIG_ENT_MAP_CLASS: "ElectricalMeasurementPowerFactor",
DEV_SIG_ENT_MAP_ID: "sensor.lumi_lumi_plug_maus01_power_factor",
},
("sensor", "00:11:22:33:44:55:66:77-1-0-rssi"): {
DEV_SIG_CLUSTER_HANDLERS: ["basic"],
DEV_SIG_ENT_MAP_CLASS: "RSSISensor",