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

Update fails with ValueError: invalid literal for int() with base 10: 'A' #18

Closed
thundergreen opened this issue May 8, 2018 · 2 comments

Comments

@thundergreen
Copy link

2018-05-08 12:13:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.aqara_air_conditioning_companion fails
Traceback (most recent call last):
File "/home/hass/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/home/hass/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/home/hass/.homeassistant/custom_components/climate/xiaomi_miio.py", line 212, in async_update
ATTR_LED: state.led,
File "/home/hass/homeassistant/lib/python3.6/site-packages/miio/airconditioningcompanion.py", line 106, in led
return 'on' if (int(self.data[1][8:9]) == Led.On.value) else 'off'
ValueError: invalid literal for int() with base 10: 'A'

@syssi
Copy link
Owner

syssi commented May 8, 2018

Will be fixed with the next release of python-miio by rytilahti/python-miio#315.

@syssi syssi changed the title update fails Update fails with ValueError: invalid literal for int() with base 10: 'A' May 8, 2018
@thundergreen
Copy link
Author

fixed with workaround. Waiting python-mio

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

No branches or pull requests

2 participants