GuyKh / ims-custom-component

The Israel Meteorological Service (IMS) integration component for home assistant
MIT License
44 stars 8 forks source link

Error on MSI sensor initialization from HASS system logs #15

Closed vadimnazaroff closed 1 year ago

vadimnazaroff commented 1 year ago

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/ims/sensor.py", line 72, in async_setup_platform config_entry[IMS_PLATFORM] = [IMS_PLATFORMS[0]] NameError: name 'config_entry' is not defined

mulikg commented 1 year ago

2023-02-20 07:29:30.058 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up ims platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/ims/sensor.py", line 72, in async_setup_platform config_entry[IMS_PLATFORM] = [IMS_PLATFORMS[0]] NameError: name 'config_entry' is not defined

t0mer commented 1 year ago

Hi, Please remove the configuration from the config.yaml and add it using the UI config flow

vadimnazaroff commented 1 year ago

I added it initially via UI and not via YAML