Fix python 3.5 test

This commit is contained in:
Paulus Schoutsen 2019-07-26 16:15:46 -07:00
parent 1c3e5988db
commit 0df1bb5029

View File

@ -162,7 +162,7 @@ async def test_cors_on_static_files(hass, hass_client):
'cors_allowed_origins': ['http://www.example.com'] 'cors_allowed_origins': ['http://www.example.com']
} }
}) })
hass.http.register_static_path('/something', Path(__file__).parent) hass.http.register_static_path('/something', str(Path(__file__).parent))
client = await hass_client() client = await hass_client()
resp = await client.options('/something/__init__.py', headers={ resp = await client.options('/something/__init__.py', headers={