dwainscheeren / dwains-lovelace-dashboard

An fully auto generating Home Assistant UI dashboard for desktop, tablet and mobile by Dwains for desktop, tablet, mobile
Other
1.78k stars 189 forks source link

Error setting up entry for dwains_dashboard #606

Open ZacheryGlass opened 2 years ago

ZacheryGlass commented 2 years ago

Initial attempt to install via HACS led to the following error message.

Logger: homeassistant.config_entries Source: custom_components/dwains_dashboard/process_yaml.py:126 Integration: Dwains Dashboard (documentation, issues) First occurred: 11:44:32 AM (1 occurrences) Last logged: 11:44:32 AM Error setting up entry for dwains_dashboard

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/dwains_dashboard/__init__.py", line 1579, in async_setup_entry
    process_yaml(hass, config_entry)
  File "/config/custom_components/dwains_dashboard/process_yaml.py", line 126, in process_yaml
    if "name" in filecontent and "icon" in filecontent:
TypeError: argument of type 'NoneType' is not iterable
Graham350z commented 2 years ago

I have exactly the same issue. does anyone have a solution?

behold81 commented 2 years ago

I have the same issue trying to set this up for the first time.

dwainscheeren commented 2 years ago

Do you both got a dwains-dashboard config folder from a previous installation or tried installing a more page?

behold81 commented 2 years ago

I can't get that far. This is a brand new install. so there is no old config folder or more page to access. this is failing to initialize in integrations in the first place.

dwainscheeren commented 2 years ago

Line 126 is only fired/executed when there is a folder dwains-dashboard/configs/more_pages so that is very strange that you get an error on line 126. 😕

behold81 commented 2 years ago

Worked out the issue. Turns out where I have tried using it in the past the high level dwains-dashboard/configs/ was causing issues. removing this fully and restarting has now got this working.

Hopefully the same issue for Graham and Zachary

Graham350z commented 2 years ago

I managed to get mine working by restoring a previous backup from about a month prior.

⁣Get TypeApp for Android ​

On 4 Aug 2022, 13:22, at 13:22, Dwain Scheeren @.***> wrote:

Line 126 is only fired/executed when there is a folder dwains-dashboard/configs/more_pages so that is very strange that you get an error on line 126. 😕

-- Reply to this email directly or view it on GitHub: https://github.com/dwainscheeren/dwains-lovelace-dashboard/issues/606#issuecomment-1205181717 You are receiving this because you commented.

Message ID: @.***>

tiberius25 commented 2 years ago

Same problem a long time, since Home Assistant 2022.7