8000 0.42.1 input_slider fails to initialize · Issue #7006 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0.42.1 input_slider fails to initialize #7006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
meltonbw opened this issue Apr 9, 2017 · 1 comment · Fixed by #7047
Closed

0.42.1 input_slider fails to initialize #7006

meltonbw opened this issue Apr 9, 2017 · 1 comment · Fixed by #7047

Comments

@meltonbw
Copy link
meltonbw commented Apr 9, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.42.1

Python release (python3 --version):
Python 3.5.2

Component/platform:
input_slider

Description of problem:
All input sliders fail to initialize and do not appear in the frontend.

Expected:
Input sliders should initialize and appear in the frontend.

Problem-relevant configuration.yaml entries and steps to reproduce:
Example input_slider definition in my config:

input_slider:
  wakeup_hour_mon:
    name: Hour
    icon: mdi:timer
    min: 0
    max: 23
    step: 1

Traceback (if applicable):

17-04-09 15:08:59 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/home-assistant/homeassistant/helpers/entity_component.py", line 359, in async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/srv/homeassistant/home-assistant/homeassistant/helpers/entity_component.py", line 213, in async_add_entity
    yield from entity.async_added_to_hass()
  File "/srv/homeassistant/home-assistant/homeassistant/components/input_slider.py", line 178, in async_added_to_hass
    if value is not False and self._minimum < value < self._maximum:
TypeError: unorderable types: float() < NoneType()

Additional info:
Upgraded from 0.41. The above traceback occurs before the "Something is blocking Home Assistant from wrapping up the start up phase." log message.

@VDRainer
Copy link
Contributor

I can confirm this. If the initial state is missing after creating new slider it raises the above error. If you set an initial state the slider comes up.

@pvizeli pvizeli mentioned this issue Apr 11, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0