Typing fixes (#12015)

* .gitignore: Add .mypy_cache

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

No files matched your search

+2 -1
View File
@@ -57,7 +57,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class DaikinClimateSensor(Entity):
"""Representation of a Sensor."""
def __init__(self, api, monitored_state, units: UnitSystem, name=None):
def __init__(self, api, monitored_state, units: UnitSystem,
name=None) -> None:
"""Initialize the sensor."""
self._api = api
self._sensor = SENSOR_TYPES.get(monitored_state)