Typing fixes (#12015)

* .gitignore: Add .mypy_cache

* Typing fixes
This commit is contained in:
Ville Skyttä 2018-01-29 10:24:08 +02:00 committed by Paulus Schoutsen
parent 78a3c01f27
commit 384f63dd1d
23 changed files with 33 additions and 21 deletions

View file

@ -37,7 +37,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class ComfoConnectFan(FanEntity):
"""Representation of the ComfoConnect fan platform."""
def __init__(self, hass, name, ccb: ComfoConnectBridge):
def __init__(self, hass, name, ccb: ComfoConnectBridge) -> None:
"""Initialize the ComfoConnect fan."""
from pycomfoconnect import SENSOR_FAN_SPEED_MODE
@ -93,7 +93,7 @@ class ComfoConnectFan(FanEntity):
speed = SPEED_LOW
self.set_speed(speed)
def turn_off(self) -> None:
def turn_off(self, **kwargs) -> None:
"""Turn off the fan (to away)."""
self.set_speed(SPEED_OFF)