1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add type hints to helpers.condition (#20266)

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

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