Fix cert expiry config flow check and update (#26638)

* Fix typo in translations

* Work on bug #26619

* readd the homeassistant.start event

* Remove the callback

* Added the executor_job for _test_connection

* Update test_config_flow.py
This commit is contained in:
Maikel Punie authored and Paulus Schoutsen committed 2019-09-17 13:39:46 -07:00
1 parent 504b8c7685
commit 9114ed36cd
5 files changed
+26 -18

No files matched your search

@@ -8,7 +8,7 @@ from homeassistant.components.cert_expiry import config_flow
from homeassistant.components.cert_expiry.const import DEFAULT_PORT
from homeassistant.const import CONF_PORT, CONF_NAME, CONF_HOST
from tests.common import MockConfigEntry
from tests.common import MockConfigEntry, mock_coro
NAME = "Cert Expiry test 1 2 3"
PORT = 443
@@ -20,7 +20,7 @@ def mock_controller():
"""Mock a successfull _prt_in_configuration_exists."""
with patch(
"homeassistant.components.cert_expiry.config_flow.CertexpiryConfigFlow._test_connection",
return_value=True,
side_effect=lambda *_: mock_coro(True),
):
yield