Add disallow_untyped_calls to mypy check. (#15661)

* Add disallow_untyped_calls to mypy check.

* Fix generator
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2018-07-31 15:00:17 +01:00
1 parent 951372491c
commit 8ee3b535ef
7 files changed
+29 -18

No files matched your search

+3 -1
View File
@@ -2,6 +2,7 @@
from collections import OrderedDict
import fnmatch
import re
from typing import Dict
from homeassistant.core import split_entity_id
@@ -9,7 +10,8 @@ from homeassistant.core import split_entity_id
class EntityValues:
"""Class to store entity id based values."""
def __init__(self, exact=None, domain=None, glob=None):
def __init__(self, exact: Dict = None, domain: Dict = None,
glob: Dict = None) -> None:
"""Initialize an EntityConfigDict."""
self._cache = {}
self._exact = exact