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

启动时有 warning 日志(lumi_mcn02_f582_air_conditioner 和 cuco_cp2d_e7a6_electric_power) #1625

Closed
he-sb opened this issue Apr 12, 2024 · 2 comments

Comments

@he-sb
Copy link

he-sb commented Apr 12, 2024

每次启动后会提示以下三条 warning 日志以及一条 error 日志:

WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) implements HVACMode(s): auto, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
ERROR (MainThread) [homeassistant.components.sensor] Platform xiaomi_miot does not generate unique IDs. ID 10:b7:13:f5:e7:a6-4976b09ee7a763d5f9ad24a05b8327f2-power_consumption-3.electric_power-4 is already used by sensor.cuco_cp2d_e7a6_electric_power - ignoring sensor.cuco_cp2d_e7a6_electric_power

暂不影响使用,但每次重启 ha 或重启本插件时都会有这四条日志。

版本信息:

  • HA: 2024.4.2
  • Xiaomi Miot Auto: 0.7.17
@he-sb
Copy link
Author

he-sb commented Apr 21, 2024

根据 #1562 (comment) 的提示,删除了 .storage/core.entity_registry10:b7:13:f5:e7:a6-4976b09ee7a763d5f9ad24a05b8327f2-power_consumption-3.electric_power-4 所在的行,然后重启 HA,未再出现第四条 error 日志,但前三条 warning 日志还是会出现。

@he-sb he-sb changed the title 启动时有错误日志(lumi_mcn02_f582_air_conditioner 和 cuco_cp2d_e7a6_electric_power) 启动时有 warning 日志(lumi_mcn02_f582_air_conditioner 和 cuco_cp2d_e7a6_electric_power) May 6, 2024
@he-sb
Copy link
Author

he-sb commented Oct 24, 2024

Seem fixed in v0.7.21

@he-sb he-sb closed this as completed Oct 24, 2024
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