Fix dependencies to account for Select type. Also fixup errors in Fan due to movement in dependencies.

This commit is contained in:
sibowler
2021-12-14 19:49:10 +11:00
committed by rospogrigio
parent 1b53c22791
commit 5a4167fe5b
2 changed files with 9 additions and 3 deletions

View File

@@ -79,7 +79,13 @@ class LocaltuyaFan(LocalTuyaEntity, FanEntity):
"""Get the list of available speeds.""" """Get the list of available speeds."""
return [SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH] 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.""" """Turn on the entity."""
await self._device.set_dp(True, self._dp_id) await self._device.set_dp(True, self._dp_id)
if speed is not None: if speed is not None:

View File

@@ -3,7 +3,7 @@ codespell==2.0.0
flake8==3.9.2 flake8==3.9.2
mypy==0.901 mypy==0.901
pydocstyle==6.1.1 pydocstyle==6.1.1
cryptography==3.2 cryptography==3.3.2
pylint==2.8.2 pylint==2.8.2
pylint-strict-informational==0.1 pylint-strict-informational==0.1
homeassistant==2021.1.4 homeassistant==2021.7.1