Add type hints to helpers.condition (#20266)

This commit is contained in:
Ville Skyttä authored and Fabian Affolter committed 2019-01-21 00:03:12 +01:00
1 parent 5b8cb10ad7
commit 58bb6f2e99
6 files changed
+101 -55

No files matched your search

+1 -1
View File
@@ -678,7 +678,7 @@ class State:
"State max length is 255 characters.").format(entity_id))
self.entity_id = entity_id.lower()
self.state = state
self.state = state # type: str
self.attributes = MappingProxyType(attributes or {})
self.last_updated = last_updated or dt_util.utcnow()
self.last_changed = last_changed or self.last_updated