Compare commits
1 Commits
dbccd2adf6
...
c71094641b
| Author | SHA1 | Date | |
|---|---|---|---|
| c71094641b |
@@ -135,6 +135,22 @@ class SmartObject(hass.Hass,LoggerInterface):
|
|||||||
# Called at the end of initialize() after all YAML args are processed.
|
# Called at the end of initialize() after all YAML args are processed.
|
||||||
def on_initialize_smart_object(self): pass
|
def on_initialize_smart_object(self): pass
|
||||||
|
|
||||||
|
# Presence simulation extension point.
|
||||||
|
# HomeAlarm can call this method by app name.
|
||||||
|
def start_presence_simulation(self, source_app=None, slot_name=None, payload=None):
|
||||||
|
self.log_error(
|
||||||
|
f"{self.name} does not implement start_presence_simulation "
|
||||||
|
f"(source_app={source_app}, slot_name={slot_name})"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Presence simulation extension point.
|
||||||
|
# HomeAlarm can call this method by app name.
|
||||||
|
def stop_presence_simulation(self, source_app=None, slot_name=None, payload=None):
|
||||||
|
self.log_error(
|
||||||
|
f"{self.name} does not implement stop_presence_simulation "
|
||||||
|
f"(source_app={source_app}, slot_name={slot_name})"
|
||||||
|
)
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# Dataset persistence helpers
|
# Dataset persistence helpers
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user