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 Paulus Schoutsen committed 2020-03-19 20:54:57 -07:00
1 parent 5f0816ea25
commit aee5c16803
4 files changed
+46 -18

No files matched your search

@@ -4,7 +4,7 @@ from unittest.mock import patch
from regenmaschine.errors import RainMachineError
from homeassistant import data_entry_flow
from homeassistant.components.rainmachine import DOMAIN, config_flow
from homeassistant.components.rainmachine import CONF_ZONE_RUN_TIME, DOMAIN, config_flow
from homeassistant.config_entries import SOURCE_USER
from homeassistant.const import (
CONF_IP_ADDRESS,
@@ -98,6 +98,7 @@ async def test_step_import(hass):
CONF_PORT: 8080,
CONF_SSL: True,
CONF_SCAN_INTERVAL: 60,
CONF_ZONE_RUN_TIME: 600,
}
@@ -129,4 +130,5 @@ async def test_step_user(hass):
CONF_PORT: 8080,
CONF_SSL: True,
CONF_SCAN_INTERVAL: 60,
CONF_ZONE_RUN_TIME: 600,
}