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

认证后提示没有设备或实体 #286

Closed
LittleKa3235 opened this issue Dec 20, 2024 · 8 comments · Fixed by #396
Closed

认证后提示没有设备或实体 #286

LittleKa3235 opened this issue Dec 20, 2024 · 8 comments · Fixed by #396
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@LittleKa3235
Copy link

Describe the Bug / 描述问题

认证后提示没有设备或实体

How to Reproduce / 复现步骤

认证过程中没有问题,也能看到实体数量,但认证后提示没有设备或实体

QQ20241220-164713

Expected Behavior / 预期结果

正常导入实体

Home Assistant Logs / 系统日志

日志记录器: homeassistant.config_entries
来源: config_entries.py:594
首次出现: 16:34:19 (8 次总计出现)
上次记录: 16:45:25

Error setting up entry Ka: 2274011 [中国大陆] for xiaomi_home
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_home/init.py", line 265, in async_setup_entry
raise err
File "/config/custom_components/xiaomi_home/init.py", line 140, in async_setup_entry
device.spec_transform()
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 540, in spec_transform
prop.external_unit = self.unit_convert(prop.unit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 619, in unit_convert
'μS/cm': UnitOfConductivity.MICROSIEMENS_PER_CM,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'UnitOfConductivity' has no attribute 'MICROSIEMENS_PER_CM'

Home Assistant Core Version / Home Assistant Core 版本

2024.11.0

Home Assistant Operation System Version / Home Assistant Operation System 版本

13.0

Xiaomi Home Integration Version / 米家集成版本

v0.1.0

Additional Context / 其他说明

No response

@alanhi
Copy link

alanhi commented Dec 20, 2024

我的是docker版本,镜像升级到最新版本解决的

@SusanPhevos SusanPhevos self-assigned this Dec 20, 2024
@SusanPhevos
Copy link
Contributor

#176

@SusanPhevos SusanPhevos added the duplicate This issue or pull request already exists label Dec 20, 2024
@yingkeafffafaf
Copy link

在线等,一样的问题,求解决

@Leeeeeeooo
Copy link

我也是 求解决踢我一下

@Leeeeeeooo
Copy link

我的是docker版本,镜像升级到最新版本解决的

你好 你是说升级docker还是升级ha呀,请教

@alanhi
Copy link

alanhi commented Dec 21, 2024

升级ha

@Leeeeeeooo
Copy link

升级ha

感谢 我试试

@Leeeeeeooo
Copy link

升级ha

可惜了 没有用,已经是最新版12.5了 哭了

@topsworld topsworld linked a pull request Dec 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants