Don't check for secrets if not using MQTT
This commit is contained in:
parent
ba50b47611
commit
b419fc3602
1 changed files with 7 additions and 6 deletions
|
|
@ -12,8 +12,9 @@ from adafruit_funhouse import FunHouse
|
||||||
OUTLET_STATE_TOPIC = "funhouse/outlet/state"
|
OUTLET_STATE_TOPIC = "funhouse/outlet/state"
|
||||||
OUTLET_COMMAND_TOPIC = "funhouse/outlet/set"
|
OUTLET_COMMAND_TOPIC = "funhouse/outlet/set"
|
||||||
MOTION_TIMEOUT = 300 # Timeout in seconds
|
MOTION_TIMEOUT = 300 # Timeout in seconds
|
||||||
USE_MQTT = True
|
USE_MQTT = False
|
||||||
|
|
||||||
|
if USE_MQTT:
|
||||||
try:
|
try:
|
||||||
from secrets import secrets
|
from secrets import secrets
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue