mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Remove unnecessary ZHA AnalogInput sensors for Xiaomi plugs (#86261)
* Remove unnecessary ZHA AnalogInput sensors for Xiaomi plugs * Remove AnalogInput entities from test
This commit is contained in:
parent
65a44cad8f
commit
0cf676d501
@ -185,12 +185,6 @@ class Sensor(ZhaEntity, SensorEntity):
|
||||
return round(float(value * self._multiplier) / self._divisor)
|
||||
|
||||
|
||||
@MULTI_MATCH(
|
||||
channel_names=CHANNEL_ANALOG_INPUT,
|
||||
manufacturers="LUMI",
|
||||
models={"lumi.plug", "lumi.plug.maus01", "lumi.plug.mmeu01"},
|
||||
stop_on_match_group=CHANNEL_ANALOG_INPUT,
|
||||
)
|
||||
@MULTI_MATCH(
|
||||
channel_names=CHANNEL_ANALOG_INPUT,
|
||||
manufacturers="Digi",
|
||||
|
@ -2245,8 +2245,6 @@ DEVICES = [
|
||||
"sensor.lumi_lumi_plug_maus01_rms_voltage",
|
||||
"sensor.lumi_lumi_plug_maus01_ac_frequency",
|
||||
"sensor.lumi_lumi_plug_maus01_power_factor",
|
||||
"sensor.lumi_lumi_plug_maus01_analoginput",
|
||||
"sensor.lumi_lumi_plug_maus01_analoginput_2",
|
||||
"binary_sensor.lumi_lumi_plug_maus01_binaryinput",
|
||||
"switch.lumi_lumi_plug_maus01_switch",
|
||||
"sensor.lumi_lumi_plug_maus01_rssi",
|
||||
@ -2309,16 +2307,6 @@ DEVICES = [
|
||||
DEV_SIG_ENT_MAP_CLASS: "LQISensor",
|
||||
DEV_SIG_ENT_MAP_ID: "sensor.lumi_lumi_plug_maus01_lqi",
|
||||
},
|
||||
("sensor", "00:11:22:33:44:55:66:77-2-12"): {
|
||||
DEV_SIG_CHANNELS: ["analog_input"],
|
||||
DEV_SIG_ENT_MAP_CLASS: "AnalogInput",
|
||||
DEV_SIG_ENT_MAP_ID: "sensor.lumi_lumi_plug_maus01_analoginput",
|
||||
},
|
||||
("sensor", "00:11:22:33:44:55:66:77-3-12"): {
|
||||
DEV_SIG_CHANNELS: ["analog_input"],
|
||||
DEV_SIG_ENT_MAP_CLASS: "AnalogInput",
|
||||
DEV_SIG_ENT_MAP_ID: "sensor.lumi_lumi_plug_maus01_analoginput_2",
|
||||
},
|
||||
("binary_sensor", "00:11:22:33:44:55:66:77-100-15"): {
|
||||
DEV_SIG_CHANNELS: ["binary_input"],
|
||||
DEV_SIG_ENT_MAP_CLASS: "BinaryInput",
|
||||
|
Loading…
x
Reference in New Issue
Block a user