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

saswell报错 #1

Closed
hdcola opened this issue May 17, 2018 · 1 comment
Closed

saswell报错 #1

hdcola opened this issue May 17, 2018 · 1 comment

Comments

@hdcola
Copy link

hdcola commented May 17, 2018

May 16 03:37:59 hassbian hass[889]: 2018-05-16 03:37:59 ERROR (MainThread) [custom_components.climate.saswell] Exception: Traceback (most recent call last):
May 16 03:37:59 hassbian hass[889]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 242, in update_data
May 16 03:37:59 hassbian hass[889]: devs.append({'is_on': status[1] == '1',
May 16 03:37:59 hassbian hass[889]: IndexError: list index out of range
May 16 03:37:59 hassbian hass[889]: 2018-05-16 03:37:59 ERROR (MainThread) [custom_components.climate.saswell] No sensors added: Saswell.

@hdcola
Copy link
Author

hdcola commented May 21, 2018

发现服务器返回的json竟然有statue是空的情况

'id': 'xxx',
'title': 'bbbb',
'about': 'ccc',
'type': 6,
'image': None,
'mstype': 0,
'product_id': None,
'company_id': '1038',
'online': '1',
'c_timestamp': '',
'as_timestamp': '',
'status': ''

devs这个dict是不是考虑不全从status里取

@hdcola hdcola closed this as completed Jun 4, 2020
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

1 participant