n71154plus / Hitachi_smart_app

MIT License
47 stars 16 forks source link

Could not setup from Integration UI #7

Open jasonlai79 opened 2 years ago

jasonlai79 commented 2 years ago

無法從整合加入設定

Logger: homeassistant.config_entries
Source: config_entries.py:720
First occurred: 23:23:43 (2 occurrences)
Last logged: 23:25:30

Error occurred loading configuration flow for integration Hitachi_smart_app: cannot import name 'HTTP_OK' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)
chichigoodboy commented 2 years ago

碰到同樣的問題, HA版本是2022.3.3

PeterChia604 commented 2 years ago

Same here. image

image

singi521 commented 2 years ago

Open Code Editor Open custom_components/Hitachi_smart_app/smarthome/init.py line 6

from homeassistant.const import HTTP_OK

line 692 if response.status == HTTP_OK => if response.status == 200

it's work for me.