We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba50b47 commit b419fc3Copy full SHA for b419fc3
FunHouse_Motion_Outlet/code.py
@@ -12,13 +12,14 @@
12
OUTLET_STATE_TOPIC = "funhouse/outlet/state"
13
OUTLET_COMMAND_TOPIC = "funhouse/outlet/set"
14
MOTION_TIMEOUT = 300 # Timeout in seconds
15
-USE_MQTT = True
+USE_MQTT = False
16
17
-try:
18
- from secrets import secrets
19
-except ImportError:
20
- print("WiFi secrets are kept in secrets.py, please add them there!")
21
- raise
+if USE_MQTT:
+ try:
+ from secrets import secrets
+ except ImportError:
+ print("WiFi secrets are kept in secrets.py, please add them there!")
22
+ raise
23
24
def set_outlet_state(value):
25
global last_pir_timestamp
0 commit comments