danielsmith-eu / home-assistant-themeparks-integration

A Home Assistant integration that shows Theme Park waiting times using the ThemeParks.wiki API
Apache License 2.0
16 stars 8 forks source link

Ride entities are not added to Theme Park device in Home Assistant 2024.6.1 #12

Open bkeiren opened 5 months ago

bkeiren commented 5 months ago

Issue: When adding a new integration entry for any Theme Park, Ride entities are created but not added as part of the Theme Park device. They are also not linked to the integration (because of the former, possibly?). Filtering the Entities table by the Theme Parks integration shows no entities, but the individual ride entities can be found as unlinked entities just fine. See the attached screenshots below.

Symptoms: Ride entities are "orphaned" and do not show under a given Theme Park device in HA. Enabling debug logging for the integration shows a potentially suspicious line regarding entities being added:

2024-06-09 20:33:14.066 INFO (MainThread) [custom_components.themeparks.sensor] Entities to add (count: <method-wrapper '__len__' of list object at 0x7fb958d33c00>): [<entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>, <entity unknown.unknown=unknown>]

See extended debug log: home-assistant_themeparks_2024-06-09T18-33-17.359Z.log

Expected behavior: I expect ride entities be created as part of their Device, just like other integrations do. I expect this to also solve the issue of these entities not being filterable by the Theme Park integration in the Entities table.

Home Assistant version: HA Core 2024.6.1, running in a docker container.

image image image