diff --git a/homeassistant/components/mqtt/fan.py b/homeassistant/components/mqtt/fan.py index 135503f2333..07cb711ebd0 100644 --- a/homeassistant/components/mqtt/fan.py +++ b/homeassistant/components/mqtt/fan.py @@ -232,10 +232,11 @@ class MqttFan( self._supported_features = 0 self._supported_features |= ( - self._topic[CONF_OSCILLATION_STATE_TOPIC] is not None and SUPPORT_OSCILLATE + self._topic[CONF_OSCILLATION_COMMAND_TOPIC] is not None + and SUPPORT_OSCILLATE ) self._supported_features |= ( - self._topic[CONF_SPEED_STATE_TOPIC] is not None and SUPPORT_SET_SPEED + self._topic[CONF_SPEED_COMMAND_TOPIC] is not None and SUPPORT_SET_SPEED ) async def _subscribe_topics(self):