DCSBL / ha-homewizard-energy

The old custom Home Assistant integration for HomeWizard Energy. This integration is now available in Core.
https://community.home-assistant.io/t/custom-component-homewizard-energy-wifi-p1-meter-and-kwh-meter/227441
Apache License 2.0
26 stars 3 forks source link

Warnings since upgrade HA #80

Closed gehob closed 2 years ago

gehob commented 2 years ago

Several warnings appear since my upgrade to HA 2022.2.1: all seam to have to do with the use of ' around properties.

To Reproduce Reboot, check logfile

Expected behavior No warnings

A clear and concise description of what you expected to happen. No warnings

If applicable, add screenshots to help explain your problem.

Log Output The warnings: Detected integration that accessed discovery_info['properties'] instead of discovery_info.properties; this will fail in version 2022.6. Please report issue to the custom component author for homewizard_energy using this method at custom_components/homewizard_energy/config_flow.py, line 135: if "product_name" in discovery_info["properties"] Detected integration that accessed discovery_info['properties'] instead of discovery_info.properties; this will fail in version 2022.6. Please report issue to the custom component author for homewizard_energy using this method at custom_components/homewizard_energy/config_flow.py, line 138: if "product_type" in discovery_info["properties"] Detected integration that accessed discovery_info['properties'] instead of discovery_info.properties; this will fail in version 2022.6. Please report issue to the custom component author for homewizard_energy using this method at custom_components/homewizard_energy/config_flow.py, line 137: "product_type": discovery_info["properties"]["product_type"] Detected integration that accessed discovery_info['properties'] instead of discovery_info.properties; this will fail in version 2022.6. Please report issue to the custom component author for homewizard_energy using this method at custom_components/homewizard_energy/config_flow.py, line 141: if "serial" in discovery_info["properties"] Detected integration that accessed discovery_info['properties'] instead of discovery_info.properties; this will fail in version 2022.6. Please report issue to the custom component author for homewizard_energy using this method at custom_components/homewizard_energy/config_flow.py, line 140: "serial": discovery_info["properties"]["serial"] If applicable To get more output, enable debug output

# configuration.yaml
logger:
  default: info
  logs:
    custom_components.homewizard_energy: debug

Additional context

Add any other context about the problem here.

DCSBL commented 2 years ago

This has been solved in https://github.com/DCSBL/ha-homewizard-energy/pull/69. Try installing https://github.com/DCSBL/ha-homewizard-energy/releases/tag/0.12.1 and restart HA.

gehob commented 2 years ago

Thanks! Works. Upgrade did so to see not worked, now it has.

Op 4 feb. 2022, om 14:39 heeft Duco Sebel @.***> het volgende geschreven:

This has been solved in #69 https://github.com/DCSBL/ha-homewizard-energy/pull/69. Try installing https://github.com/DCSBL/ha-homewizard-energy/releases/tag/0.12.1 https://github.com/DCSBL/ha-homewizard-energy/releases/tag/0.12.1 and restart HA.

ā€” Reply to this email directly, view it on GitHub https://github.com/DCSBL/ha-homewizard-energy/issues/80#issuecomment-1029993921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUVLOGKVHNA6GVF6EADWZK3UZPJHJANCNFSM5NRZVGPA. You are receiving this because you authored the thread.

DCSBL commented 2 years ago

Goed om te horen! šŸ‘