コード例 #1
0
 def setUp(self):  # pylint: disable=invalid-name
     """Setup things to be run when tests are started."""
     self.hass = get_test_home_assistant()
     with patch('homeassistant.core.Config.path', return_value=':memory:'):
         recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
コード例 #2
0
 def init_recorder(self):
     """Initialize the recorder."""
     db_uri = 'sqlite://'
     with patch('homeassistant.core.Config.path', return_value=db_uri):
         recorder.setup(self.hass, config={"recorder": {"db_url": db_uri}})
     self.hass.start()
     recorder._INSTANCE.block_till_db_ready()
     self.wait_recording_done()
コード例 #3
0
 def setUp(self):  # pylint: disable=invalid-name
     """Setup things to be run when tests are started."""
     self.hass = get_test_home_assistant()
     db_uri = 'sqlite://'
     with patch('homeassistant.core.Config.path', return_value=db_uri):
         recorder.setup(self.hass, config={"recorder": {"db_url": db_uri}})
     self.hass.start()
     recorder._INSTANCE.block_till_db_ready()
     self.session = recorder.Session()
     recorder._INSTANCE.block_till_done()
コード例 #4
0
ファイル: test_history.py プロジェクト: 12-hak/hak-assistant
 def init_recorder(self):
     """Initialize the recorder."""
     db_uri = 'sqlite://'
     with patch('homeassistant.core.Config.path', return_value=db_uri):
         recorder.setup(self.hass, config={
             "recorder": {
                 "db_url": db_uri}})
     self.hass.start()
     recorder._INSTANCE.block_till_db_ready()
     self.wait_recording_done()
コード例 #5
0
 def setUp(self):  # pylint: disable=invalid-name
     """Setup things to be run when tests are started."""
     self.hass = get_test_home_assistant()
     db_uri = 'sqlite://'
     with patch('homeassistant.core.Config.path', return_value=db_uri):
         recorder.setup(self.hass, config={
             "recorder": {
                 "db_url": db_uri}})
     self.hass.start()
     recorder._INSTANCE.block_till_db_ready()
     self.session = recorder.Session()
     recorder._INSTANCE.block_till_done()
コード例 #6
0
 def setUp(self):  # pylint: disable=invalid-name
     self.hass = get_test_home_assistant()
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
コード例 #7
0
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
     self.init_rec = True
コード例 #8
0
 def setUp(self):  # pylint: disable=invalid-name
     self.hass = get_test_home_assistant()
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
コード例 #9
0
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
     self.init_rec = True
コード例 #10
0
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
コード例 #11
0
ファイル: test_history.py プロジェクト: xpo172/home-assistant
 def init_recorder(self):
     """Initialize the recorder."""
     with patch('homeassistant.core.Config.path', return_value=':memory:'):
         recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
コード例 #12
0
ファイル: test_history.py プロジェクト: 1lann/home-assistant
 def init_recorder(self):
     """Initialize the recorder."""
     with patch('homeassistant.core.Config.path', return_value=':memory:'):
         recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
コード例 #13
0
 def init_recorder(self):
     """Initialize the recorder."""
     recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
コード例 #14
0
 def setUp(self):  # pylint: disable=invalid-name
     """Setup things to be run when tests are started."""
     self.hass = get_test_home_assistant()
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()