Send microwave states to lora
This commit is contained in:
@@ -78,4 +78,15 @@ def lora_new_alert(alert: Alert):
|
||||
return {
|
||||
"action": LoraCommands.NEW_ALERT,
|
||||
"alert_type": alert.alertType
|
||||
}
|
||||
|
||||
def lora_microwave_state(state: str):
|
||||
try:
|
||||
from shared.lora_device import LoraCommands
|
||||
except ImportError:
|
||||
pass # No need
|
||||
|
||||
return {
|
||||
"action": LoraCommands.MICROVAVE_STATE_UPDATE,
|
||||
"new_microwave_state": state
|
||||
}
|
||||
Reference in New Issue
Block a user