implement sleepmodes

This commit is contained in:
joBr99
2023-11-20 20:02:53 +01:00
parent 3e56cf7d8c
commit 694b231983
4 changed files with 79 additions and 1 deletions

View File

@@ -208,6 +208,11 @@ def get_entity_data(entity_id: str):
return home_assistant_entity_state_cache[entity_id]
else:
return None
def is_existent(entity_id: str):
if entity_id in home_assistant_entity_state_cache:
return True
else:
return False
def send_message(message):