From 86b984b0bd5e38b5003caa309aabf3baf24ff7a4 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 12 May 2020 11:45:05 +0200 Subject: [PATCH] Fix zwave_mqtt discovery of switch entities (#35533) limit of device_class is redundant as we're already scoping to the Binary Switch CommandClass as primary value. --- homeassistant/components/zwave_mqtt/discovery.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/homeassistant/components/zwave_mqtt/discovery.py b/homeassistant/components/zwave_mqtt/discovery.py index 69bf9e5c896..86c227b6973 100644 --- a/homeassistant/components/zwave_mqtt/discovery.py +++ b/homeassistant/components/zwave_mqtt/discovery.py @@ -65,20 +65,6 @@ DISCOVERY_SCHEMAS = ( }, { # Switch platform const.DISC_COMPONENT: "switch", - const.DISC_GENERIC_DEVICE_CLASS: ( - const_ozw.GENERIC_TYPE_METER, - const_ozw.GENERIC_TYPE_SENSOR_ALARM, - const_ozw.GENERIC_TYPE_SENSOR_BINARY, - const_ozw.GENERIC_TYPE_SWITCH_BINARY, - const_ozw.GENERIC_TYPE_ENTRY_CONTROL, - const_ozw.GENERIC_TYPE_SENSOR_MULTILEVEL, - const_ozw.GENERIC_TYPE_SWITCH_MULTILEVEL, - const_ozw.GENERIC_TYPE_GENERIC_CONTROLLER, - const_ozw.GENERIC_TYPE_SWITCH_REMOTE, - const_ozw.GENERIC_TYPE_REPEATER_SLAVE, - const_ozw.GENERIC_TYPE_THERMOSTAT, - const_ozw.GENERIC_TYPE_WALL_CONTROLLER, - ), const.DISC_VALUES: { const.DISC_PRIMARY: { const.DISC_COMMAND_CLASS: (CommandClass.SWITCH_BINARY,),