Fix files left behind (#16855)

* Light demo test to not write entity registry

* Fix Manual MQTT alarm control panel
This commit is contained in:
Paulus Schoutsen 2018-09-25 17:19:46 +02:00 committed by GitHub
parent 0dbfd77402
commit 399040de46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 70 deletions

View file

@ -1,7 +1,7 @@
"""The tests for the manual_mqtt Alarm Control Panel component."""
from datetime import timedelta
import unittest
from unittest.mock import patch
from unittest.mock import patch, Mock
from homeassistant.setup import setup_component
from homeassistant.const import (
@ -23,6 +23,7 @@ class TestAlarmControlPanelManualMqtt(unittest.TestCase):
def setUp(self): # pylint: disable=invalid-name
"""Set up things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.hass.config_entries._async_schedule_save = Mock()
self.mock_publish = mock_mqtt_component(self.hass)
def tearDown(self): # pylint: disable=invalid-name