diff --git a/homeassistant/components/mqtt/__init__.py b/homeassistant/components/mqtt/__init__.py index e8847375584..78f64387435 100644 --- a/homeassistant/components/mqtt/__init__.py +++ b/homeassistant/components/mqtt/__init__.py @@ -190,26 +190,7 @@ MQTT_WILL_BIRTH_SCHEMA = vol.Schema( ) PLATFORM_CONFIG_SCHEMA_BASE = vol.Schema( - { - vol.Optional(Platform.ALARM_CONTROL_PANEL.value): cv.ensure_list, - vol.Optional(Platform.BINARY_SENSOR.value): cv.ensure_list, - vol.Optional(Platform.BUTTON.value): cv.ensure_list, - vol.Optional(Platform.CAMERA.value): cv.ensure_list, - vol.Optional(Platform.CLIMATE.value): cv.ensure_list, - vol.Optional(Platform.COVER.value): cv.ensure_list, - vol.Optional(Platform.DEVICE_TRACKER.value): cv.ensure_list, - vol.Optional(Platform.FAN.value): cv.ensure_list, - vol.Optional(Platform.HUMIDIFIER.value): cv.ensure_list, - vol.Optional(Platform.LIGHT.value): cv.ensure_list, - vol.Optional(Platform.LOCK.value): cv.ensure_list, - vol.Optional(Platform.NUMBER.value): cv.ensure_list, - vol.Optional(Platform.SCENE.value): cv.ensure_list, - vol.Optional(Platform.SELECT.value): cv.ensure_list, - vol.Optional(Platform.SIREN.value): cv.ensure_list, - vol.Optional(Platform.SENSOR.value): cv.ensure_list, - vol.Optional(Platform.SWITCH.value): cv.ensure_list, - vol.Optional(Platform.VACUUM.value): cv.ensure_list, - } + {vol.Optional(platform.value): cv.ensure_list for platform in PLATFORMS} ) CONFIG_SCHEMA_BASE = PLATFORM_CONFIG_SCHEMA_BASE.extend(