diff --git a/smartobject.py b/smartobject.py index d00332c..8a60dab 100644 --- a/smartobject.py +++ b/smartobject.py @@ -114,10 +114,10 @@ class SmartObject(hass.Hass,LoggerInterface): if state_class is not None: attributes['state_class'] = state_class if state is not None: - entity.set_state(state=state, attributes=attributes) + entity.set_state(state=state, attributes=attributes, check_existence=False) else: if not entity.exists(): - entity.set_state(state='unknown') + entity.set_state(state='unknown', check_existence=False) entity.set_state(attributes=attributes) return entity