Dont set a speed when fan turns on (#5514)
This commit is contained in:
parent
f54f68903d
commit
9bc9e7fbc4
1 changed files with 3 additions and 2 deletions
|
@ -235,11 +235,12 @@ class MqttFan(FanEntity):
|
|||
"""Return the oscillation state."""
|
||||
return self._oscillation
|
||||
|
||||
def turn_on(self, speed: str=SPEED_MEDIUM) -> None:
|
||||
def turn_on(self, speed: str=None) -> None:
|
||||
"""Turn on the entity."""
|
||||
mqtt.publish(self._hass, self._topic[CONF_COMMAND_TOPIC],
|
||||
self._payload[STATE_ON], self._qos, self._retain)
|
||||
self.set_speed(speed)
|
||||
if speed:
|
||||
self.set_speed(speed)
|
||||
|
||||
def turn_off(self) -> None:
|
||||
"""Turn off the entity."""
|
||||
|
|
Loading…
Add table
Reference in a new issue