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

Local mode on CGDN1 is not working after upgrade to 0.3.9 #139

Closed
andrey-yantsen opened this issue Jul 22, 2021 · 2 comments
Closed

Local mode on CGDN1 is not working after upgrade to 0.3.9 #139

andrey-yantsen opened this issue Jul 22, 2021 · 2 comments
Labels
bug Something isn't working fixed bug fixed

Comments

@andrey-yantsen
Copy link

I see the following message in the logs:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 401, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 609, in async_device_update
    raise exc
  File "/config/custom_components/xiaomi_miot/sensor.py", line 123, in async_update
    await super().async_update()
  File "/config/custom_components/xiaomi_miot/__init__.py", line 868, in async_update
    results = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/xiaomi_miot/__init__.py", line 435, in get_properties_for_mapping
    return self.get_properties(
  File "/usr/local/lib/python3.9/site-packages/miio/device.py", line 269, in get_properties
    values.extend(self.send(property_getter, _props[:max_properties]))
TypeError: slice indices must be integers or None or have an __index__ method
@al-one al-one added the bug Something isn't working label Jul 22, 2021
al-one added a commit that referenced this issue Jul 23, 2021
@al-one
Copy link
Owner

al-one commented Jul 23, 2021

Thank you ! Please upgrade to v0.3.10.

@al-one al-one added the fixed bug fixed label Jul 23, 2021
@andrey-yantsen
Copy link
Author

Yep, works in 0.3.10, thank you!

@al-one al-one closed this as completed Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants