Fix dependencies to account for Select type. Also fixup errors in Fan due to movement in dependencies.
This commit is contained in:
@@ -79,7 +79,13 @@ class LocaltuyaFan(LocalTuyaEntity, FanEntity):
|
||||
"""Get the list of available speeds."""
|
||||
return [SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH]
|
||||
|
||||
async def async_turn_on(self, speed: str = None, **kwargs) -> None:
|
||||
async def async_turn_on(
|
||||
self,
|
||||
speed: str = None,
|
||||
percentage: int = None,
|
||||
preset_mode: str = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
"""Turn on the entity."""
|
||||
await self._device.set_dp(True, self._dp_id)
|
||||
if speed is not None:
|
||||
|
@@ -3,7 +3,7 @@ codespell==2.0.0
|
||||
flake8==3.9.2
|
||||
mypy==0.901
|
||||
pydocstyle==6.1.1
|
||||
cryptography==3.2
|
||||
cryptography==3.3.2
|
||||
pylint==2.8.2
|
||||
pylint-strict-informational==0.1
|
||||
homeassistant==2021.1.4
|
||||
homeassistant==2021.7.1
|
||||
|
Reference in New Issue
Block a user