Add typing to homeassistant/*.py and homeassistant/util/ (#15569)
* Add typing to homeassistant/*.py and homeassistant/util/ * Fix wrong merge * Restore iterable in OrderedSet * Fix tests
This commit is contained in:
parent
b7c336a687
commit
140a874917
27 changed files with 532 additions and 384 deletions
|
@ -199,8 +199,10 @@ class TestScriptComponent(unittest.TestCase):
|
|||
}
|
||||
}]
|
||||
}}}):
|
||||
script.reload(self.hass)
|
||||
self.hass.block_till_done()
|
||||
with patch('homeassistant.config.find_config_file',
|
||||
return_value=''):
|
||||
script.reload(self.hass)
|
||||
self.hass.block_till_done()
|
||||
|
||||
assert self.hass.states.get(ENTITY_ID) is None
|
||||
assert not self.hass.services.has_service(script.DOMAIN, 'test')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue