tomaae/homeassistant-openmediavault

[Bug] "Ignoring invalid device info" with homeassistant 2023.8.x

deejaybeam opened this issue · 2 comments

Describe the issue

Since update of home assistant to version 2023.8.x multiple error-messages are shown.

How to reproduce the issue

Update home assistant to version 2023.8.x
restart HA or reload the integration

Expected behavior

no errors should be thrown

Screenshots

Software versions

  • Home Assistant version: HA 2023.8.1
  • openmediavault integration version: v1.4.1
  • openmediavault software version: v6.5.7-1

Diagnostics data

Traceback/Error logs

Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:624
Integration: Binärsensor (documentation, issues)
First occurred: 09:13:29 (10 occurrences)
Last logged: 09:13:29

Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'omv.domain.name')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV System', 'identifiers': {('openmediavault', 'omv.domain.name')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'Services')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV Services', 'identifiers': {('openmediavault', 'Services')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:624
Integration: Sensor (documentation, issues)
First occurred: 09:13:29 (22 occurrences)
Last logged: 09:13:29

Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'omv.domain.name')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV System', 'identifiers': {('openmediavault', 'omv.domain.name')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'OMV_Filesystem')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV Filesystem', 'identifiers': {('openmediavault', 'OMV_Filesystem')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'OMV_Disk')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV Disk', 'identifiers': {('openmediavault', 'OMV_Disk')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'OMV_KVM')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV KVM', 'identifiers': {('openmediavault', 'OMV_KVM')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'configuration_url': 'http://192.168.x.y', 'connections': {('openmediavault', 'OMV_Compose')}, 'default_manufacturer': 'OpenMediaVault', 'default_name': 'OMV Compose', 'identifiers': {('openmediavault', 'OMV_Compose')}, 'sw_version': '6.5.7-1 (Shaitan)', 'via_device': ('openmediavault', 'omv.domain.name')} for 'openmediavault' config entry: device info needs to either describe a device, link to existing device or provide extra information.

Additional context

Those errors are shown since update of home assistant core to version 2023.8.1 from 2023.7.3.
Therer are always 2 messages for binary_sensor and 5 messages for sensor.

The entities still work!

After removing the integration, restart of HA, manual cleanup of:

  • core.config_entries
  • core.device_registry
  • core.entity_registry

the messages instantly came back after adding the integration again, but the integration does not show any device anymore, just entities.

tomaae commented

yes, it was undocumented breaking change in 2023.8
integration works fine, it just breaks connections between entities.

tomaae commented

this one has been already fixed in above mentioned issue