mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Dont set a speed when fan turns on (#5514)
This commit is contained in:
parent
f54f68903d
commit
9bc9e7fbc4
@ -235,11 +235,12 @@ class MqttFan(FanEntity):
|
|||||||
"""Return the oscillation state."""
|
"""Return the oscillation state."""
|
||||||
return self._oscillation
|
return self._oscillation
|
||||||
|
|
||||||
def turn_on(self, speed: str=SPEED_MEDIUM) -> None:
|
def turn_on(self, speed: str=None) -> None:
|
||||||
"""Turn on the entity."""
|
"""Turn on the entity."""
|
||||||
mqtt.publish(self._hass, self._topic[CONF_COMMAND_TOPIC],
|
mqtt.publish(self._hass, self._topic[CONF_COMMAND_TOPIC],
|
||||||
self._payload[STATE_ON], self._qos, self._retain)
|
self._payload[STATE_ON], self._qos, self._retain)
|
||||||
self.set_speed(speed)
|
if speed:
|
||||||
|
self.set_speed(speed)
|
||||||
|
|
||||||
def turn_off(self) -> None:
|
def turn_off(self) -> None:
|
||||||
"""Turn off the entity."""
|
"""Turn off the entity."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user