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.

Setting "Generate battery entities" does not work

See original GitHub issue

I have the “Generate battery entities” disabled: image

When activating it and saving it, I get an error: image

Console output:

2021-05-16 11:43:21 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 213, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 197, in async_configure
    user_input = cur_step["data_schema"](user_input)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 741, in __call__
    'value must be one of {}'.format(sorted(self.container)))
TypeError: '<' not supported between instances of 'bool' and 'str'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Ernst79commented, May 17, 2021

I think you need to select something (False) in the Report Unknown option. It is now empty, which isn’t probably allowed.

0reactions
Ernst79commented, May 17, 2021

Couldn’t reproduce it (tried new (minimal) configuration in Yaml, then moved to UI mode. After that, when I open the options menu, report_unknown is filled in with False.

I’m closing the issue for now. Will keep an eye on new issues, if more people are facing the same, might be related to the change in this option, (True isn’t allowed anymore)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically generated Low Battery devices Alert, using auto ...
First step was to create an automatic card that would show all the devices that report a battery level using auto-entities and ...
Read more >
Home Assistant Battery Warning Card Using Auto-entities
In this video we show how to create a Home Assistant battery warning card using auto- entities to add to a dashboardAuto- entities...
Read more >
HOW TO create your own Low Battery Warning Sensor In ...
I think it doesn't really make sense to show all the batteries in your setup and what the charge value is of each...
Read more >
benct/lovelace-battery-entity-row - GitHub
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI - GitHub - benct/lovelace-battery-entity-row: Show ...
Read more >
Profile battery usage with Batterystats and Battery Historian
This is especially useful to make sure no external events are affecting your test. The 2 App Stats tab includes information about specific...
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