Fix RainMachine not properly storing data in the config entry (#33002)

* Fix bug related to RainMachine's default config flow

* A

* Fix tests

* Code review
This commit is contained in:
Aaron Bach authored and GitHub committed 2020-03-19 20:54:41 -07:00
1 parent c3c5cc9ae7
commit d8e3e9abaa
4 files changed
+46 -18

No files matched your search

@@ -1,6 +1,10 @@
"""Define constants for the SimpliSafe component."""
from datetime import timedelta
DOMAIN = "rainmachine"
CONF_ZONE_RUN_TIME = "zone_run_time"
DATA_CLIENT = "client"
DATA_PROGRAMS = "programs"
DATA_PROVISION_SETTINGS = "provision.settings"
@@ -10,6 +14,8 @@ DATA_ZONES = "zones"
DATA_ZONES_DETAILS = "zones_details"
DEFAULT_PORT = 8080
DEFAULT_SCAN_INTERVAL = timedelta(seconds=60)
DEFAULT_ZONE_RUN = 60 * 10
PROGRAM_UPDATE_TOPIC = f"{DOMAIN}_program_update"
SENSOR_UPDATE_TOPIC = f"{DOMAIN}_data_update"