Limych / ha-gismeteo

Gismeteo Weather Provider for Home Assistant
Other
117 stars 21 forks source link

Error while setting up platform gismeteo #1

Closed Limych closed 4 years ago

Limych commented 4 years ago
2019-09-06 23:20:17 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform gismeteo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gismeteo/weather.py", line 57, in setup_platform
    'cache_time': MIN_TIME_BETWEEN_UPDATES.total_seconds(),
  File "/config/custom_components/gismeteo/gismeteo.py", line 132, in __init__
    self._city_id = self._get_city_id(latitude, longitude)
  File "/config/custom_components/gismeteo/gismeteo.py", line 167, in _get_city_id
    response = self._http_request(url, cache_fname)
  File "/config/custom_components/gismeteo/gismeteo.py", line 157, in _http_request
    self._cache.save_cache(cache_fname, response)
  File "/config/custom_components/gismeteo/gismeteo.py", line 108, in save_cache
    os.makedirs(self._cache_dir)
  File "/usr/local/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/tmp/gismeteo'
github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.