Open enoch85 opened 3 months ago
I think this can be the solution for above matter, I made those changes and it seems to work.
First import new DeviceEntryType: from homeassistant.helpers.device_registry import DeviceEntryType Then change “entry_type” : “service”, to “entry_type” : DeviceEntryType.SERVICE,
2024-08-26 05:45:33.391 ERROR (SyncWorker_9) [custom_components.greenely.api] Failed to fetch produced electricity data, {"title":"404 Not Found","jwt":"eyJ0secretsecretsecretsecretsecretsecretJ9.eyJsecretsecretsecretsecretsecretsecretsecretsecretsecret"} 2024-08-26 05:45:33.392 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that uses str for device registry entry_type. This is deprecated and will stop working in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue.
Stack (most recent call last):