From d8756928a5e79be106f59bc1657a857aa4520f95 Mon Sep 17 00:00:00 2001 From: Pierre Gironde Date: Sun, 4 Oct 2026 22:08:43 +0200 Subject: [PATCH] fixed create_entity warnings --- smartobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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