Core support for hass.io calls & Bugfix check_config (#11571)
* Initial overwrites * Add check_config function. * Update hassio.py * Address comments * add hassio support * add more tests * revert core changes * Address check_config * Address comment with api_bool * Bugfix check_config * Update core.py * Update test_core.py * Update config.py * Update hassio.py * Update config.py * Update test_config.py
This commit is contained in:
parent
8a301c6c59
commit
dacd7cd8a4
6 changed files with 179 additions and 17 deletions
|
@ -531,7 +531,7 @@ class TestConfig(unittest.TestCase):
|
|||
"""Check that restart propagates to stop."""
|
||||
process_mock = mock.MagicMock()
|
||||
attrs = {
|
||||
'communicate.return_value': mock_coro(('output', 'error')),
|
||||
'communicate.return_value': mock_coro((b'output', None)),
|
||||
'wait.return_value': mock_coro(0)}
|
||||
process_mock.configure_mock(**attrs)
|
||||
mock_create.return_value = mock_coro(process_mock)
|
||||
|
@ -546,7 +546,7 @@ class TestConfig(unittest.TestCase):
|
|||
process_mock = mock.MagicMock()
|
||||
attrs = {
|
||||
'communicate.return_value':
|
||||
mock_coro(('\033[34mhello'.encode('utf-8'), 'error')),
|
||||
mock_coro(('\033[34mhello'.encode('utf-8'), None)),
|
||||
'wait.return_value': mock_coro(1)}
|
||||
process_mock.configure_mock(**attrs)
|
||||
mock_create.return_value = mock_coro(process_mock)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue