Limych/ha-gismeteo

RuntimeError: dictionary changed size during iteration

corwin39 opened this issue · 0 comments

Versions

  • Version of the Home Assistant: core-2021.3.4
  • Version of the custom component: 2.1.1

Configuration

weather:
  - platform: gismeteo
  - platform: gismeteo
    name: "Gismeteo Daily"
    mode: daily


sensor:
  - platform: gismeteo
    forecast: true
    monitored_conditions:
      - weather
      - temperature
      - wind_speed
      - wind_bearing
      - humidity
      - pressure
      - clouds
      - rain
      - snow
      - storm
      - geomagnetic

  - platform: template
    sensors:
      gismeteo_pressure_mmhg:
        device_class: pressure
        unit_of_measurement: 'mmHg'
        friendly_name: "Gismeteo Pressure"
        value_template: "{{ (states('sensor.gismeteo_pressure') | float / 1.33322) | round(1) }}"
        availability_template: "{{ states.sensor.gismeteo_pressure != None }}"

Describe the bug
После обновления до последних версий не стартует компонент.

Debug log


Logger: homeassistant.config_entries
Source: custom_components/gismeteo/__init__.py:95
First occurred: 18:47:23 (1 occurrences)
Last logged: 18:47:23

Error setting up entry configuration.yaml for gismeteo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/gismeteo/__init__.py", line 95, in async_setup_entry
    for uid, cfg in hass.data[DOMAIN][CONF_YAML].items():
RuntimeError: dictionary changed size during iteration