bajansen / home-assistant-frank_energie

Custom Component voor Home Assistant Frank Energie prijsinformatie
68 stars 19 forks source link

After upgrade to 2023.9.0 integration not working anymore #92

Closed sweetpants closed 1 year ago

sweetpants commented 1 year ago

After upgrade to HA 2023.9.0 the integration stopped working. Re-installed the integration did not help. Normally I should have 17 entities read from Frank Energie, but none are now. HA log says after reload:

2023-09-07 10:25:46.787 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.793 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.794 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.797 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.799 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.802 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.804 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.807 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.817 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.824 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.828 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.832 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.839 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.842 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.846 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.850 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information. 2023-09-07 10:25:46.852 ERROR (MainThread) [homeassistant.components.sensor] frank_energie: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'https://www.frankenergie.nl/goedkoop', 'default_manufacturer': 'Frank Energie', 'entry_type': <DeviceEntryType.SERVICE: 'service'>, 'identifiers': {('frank_energie', '518f7a1e0e42abc4ce3edb627d490689')}, 'name': 'Frank Energie - Prices'} for 'frank_energie' config entry: device info needs to either describe a device, link to existing device or provide extra information.

Please have a look at it

Regards, HArry

PS: I'm using the integration without an account

VlarpNL commented 1 year ago

I'm having the same issue but I'm using the integration with my Frank Energie account. So logged in or not, the issue seems to be the same.

DCSBL commented 1 year ago

Issue is triggered by https://github.com/home-assistant/core/pull/95641, will see..

I am unable to test locally atm so I try to hotfix it.

DCSBL commented 1 year ago

Issue should be resolved in v2.5.1, please install this version and try it out. If the problem still persist feel free to reopen this issue.

Jasperwolsing commented 1 year ago

Fix works for me, great Job @DCSBL !