Was not getting any entities and this was in the logs:
2023-09-26 21:05:22.939 INFO (MainThread) [custom_components.daikinskyport] Daikin Skyport Starting
2023-09-26 21:05:22.939 DEBUG (MainThread) [custom_components.daikinskyport] Using email: redacted@domain.com
2023-09-26 21:05:30.950 WARNING (SyncWorker_1) [daikinskyport] Error connecting to Daikin Skyport. Possible connectivity outage.
2023-09-26 21:05:30.961 DEBUG (MainThread) [custom_components.daikinskyport] Daikin Skyport data updated successfully
Not really useful without the error, so I captured the error and added it to the warning:
2023-09-26 21:09:21.464 WARNING (SyncWorker_4) [daikinskyport] Error connecting to Daikin Skyport. Possible connectivity outage: HTTPSConnectionPool(host='api.daikinskyport.com', port=443): Max retries exceeded with url: /devices (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff50173e90>: Failed to establish a new connection: [Errno -3] Try again'))
I replaced the request.get allowing for retries with a backoff and was able to get it working.
Was not getting any entities and this was in the logs:
Not really useful without the error, so I captured the error and added it to the warning:
I replaced the
request.get
allowing for retries with a backoff and was able to get it working.