No longer rely on requests (#23685)
* No longer rely on requests * Lint * Missed a few parts * Fix types * Fix more types * Update __main__.py * Fix tests * Lint * Fix script
This commit is contained in:
parent
f019e2a204
commit
cc13713abd
10 changed files with 271 additions and 197 deletions
|
@ -22,8 +22,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||
# prevent .HA_VERSION file from being written
|
||||
@patch(
|
||||
'homeassistant.bootstrap.conf_util.process_ha_config_upgrade', Mock())
|
||||
@patch('homeassistant.util.location.detect_location_info',
|
||||
Mock(return_value=None))
|
||||
@patch('homeassistant.util.location.async_detect_location_info',
|
||||
Mock(return_value=mock_coro(None)))
|
||||
@patch('os.path.isfile', Mock(return_value=True))
|
||||
@patch('os.access', Mock(return_value=True))
|
||||
@patch('homeassistant.bootstrap.async_enable_logging',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue