Fix for issue #9240 (#10173)

Changes for respecting mqtt fan config. If fan speed and oscillation is not configured they wouldn't be displayed in UI.
This commit is contained in:
bastshoes authored and Pascal Vizeli committed 2017-10-27 16:04:18 +02:00
1 parent c0f8e6c5c5
commit 68390373e5
1 file changed
+2 -2
+2 -2
View File
@@ -186,7 +186,7 @@ class MqttFan(FanEntity):
yield from mqtt.async_subscribe(
self.hass, self._topic[CONF_SPEED_STATE_TOPIC], speed_received,
self._qos)
self._speed = SPEED_OFF
self._speed = SPEED_OFF
@callback
def oscillation_received(topic, payload, qos):
@@ -202,7 +202,7 @@ class MqttFan(FanEntity):
yield from mqtt.async_subscribe(
self.hass, self._topic[CONF_OSCILLATION_STATE_TOPIC],
oscillation_received, self._qos)
self._oscillation = False
self._oscillation = False
@property
def should_poll(self):