Skip to content
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

sensor integration throws error with type "speed_ms" - Core 110 #35886

Closed
giggo opened this issue May 20, 2020 · 4 comments
Closed

sensor integration throws error with type "speed_ms" - Core 110 #35886

giggo opened this issue May 20, 2020 · 4 comments

Comments

@giggo
Copy link

giggo commented May 20, 2020

The problem

Since updating to 110 a sensor (KNX) with type speed_ms throws error

Environment

  • Home Assistant Core release with the issue: 110
  • Last working Home Assistant Core release (if known): 109
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker
  • Integration causing this issue: KNX, sensor
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

- platform: knx
  name: "Windgeschwindigkeit"
  state_address: '5/0/14'
  type: "speed_ms"

Traceback/Error logs

Additional information

In Log:

Logger: homeassistant.components.sensor
Source: components/knx/sensor.py:53
Integration: Sensor (documentation, issues)
First occurred: 0:01:50 (1 occurrences)
Last logged: 0:01:50

Error while setting up knx platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/knx/sensor.py", line 32, in async_setup_platform
    async_add_entities_config(hass, config, async_add_entities)
  File "/usr/src/homeassistant/homeassistant/components/knx/sensor.py", line 53, in async_add_entities_config
    value_type=config[CONF_TYPE],
  File "/usr/local/lib/python3.7/site-packages/xknx/devices/sensor.py", line 34, in __init__
    after_update_cb=self.after_update)
  File "/usr/local/lib/python3.7/site-packages/xknx/remote_value/remote_value_sensor.py", line 219, in __init__
    raise ConversionError("invalid value type", value_type=value_type, device_name=device_name)
xknx.exceptions.exception.ConversionError: <ConversionError description="invalid value type" device_name="Windgeschwindigkeit" value_type="speed_ms"/>
@probot-home-assistant
Copy link

Hey there @Julius2342, mind taking a look at this issue as its been labeled with a integration (knx) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@spacegaier
Copy link
Member

Might be linked to #35154. The new type should be "wind_speed_ms".

@stale
Copy link

stale bot commented Aug 22, 2020

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 22, 2020
@stale stale bot closed this as completed Aug 29, 2020
@giggo
Copy link
Author

giggo commented Aug 29, 2020

Might be linked to #35154. The new type should be "wind_speed_ms".

This works. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants