question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.110 & 2.25 can't edit previously added gabrages

See original GitHub issue

This is another bug on my two hasses: Can’t edit previously added integrations. It stops with info ‘Please wait, installing integrations’. But if i add another (new) one i can edit it, configuration dialog shows immediately. I probably should re add all my garbage and forget about it but i ve enabled debug log for previous issue so here it is (i hope this time with more sense ;> ) :

Logger: aiohttp.server
Source: custom_components/garbage_collection/config_singularity.py:49
First occurred: 8:47:26 (1 occurrences)
Last logged: 8:47:26

Error handling request
Traceback (most recent call last):
  File "/home/hass/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/home/hass/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 125, in handle
    result = await result
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py", line 186, in post
    return await super().post(request)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py", line 54, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/data_entry_flow.py", line 72, in post
    "show_advanced_options": data["show_advanced_options"],
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 129, in async_init
    flow, flow.init_step, data, init_done
  File "/home/hass/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/home/hass/homeassistant/.homeassistant/custom_components/garbage_collection/config_flow.py", line 379, in async_step_init
    CONFIGURATION.clean(self.config_entry.options)
  File "/home/hass/homeassistant/.homeassistant/custom_components/garbage_collection/config_singularity.py", line 49, in clean
    del data[key]
TypeError: 'mappingproxy' object does not support item deletion

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bruxy70commented, May 25, 2020

Alternatively, you can do every_n_days, with period of 28, and leave the first_date 😃

1reaction
bruxy70commented, May 25, 2020

Or maybe, they are not monthly, but every 4 weeks. So if you use frequency every_n_weeks, period 4 and first_week 3. I did not check the whole table, but like half of it and it looks like this is what it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Garbage service for houses and smallplexes - Portland.gov
To set up or change your garbage, recycling, and compost collection service, ... to take the previous week's materials at no additional cost...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found