Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 4
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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 7
0
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
     self.init_rec = True
Exemplo n.º 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()
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     recorder._INSTANCE.block_till_done()
     self.init_rec = True
Exemplo n.º 10
0
 def init_recorder(self):
     recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
Exemplo n.º 11
0
 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()
Exemplo n.º 12
0
 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()
Exemplo n.º 13
0
 def init_recorder(self):
     """Initialize the recorder."""
     recorder.setup(self.hass, {})
     self.hass.start()
     self.wait_recording_done()
Exemplo n.º 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()