Enphase successfull connection but cant setup entry

I have Enphase for my solar system in my home and attempting to integrate into home assistant. With the Enphase app I am attempting the integration and it initially completed successfully but the app shows no devices or entities. I did debug logging and attempted a reload then reviewed the logs. My home assistant instance can talk locally to my Enphase system, pull back all of the information associated to each solar panel and system usage, but yet app shows failed. Not sure if this is an app issue? After retrieving everything successfully it reports an error setting up the entry.

024-06-28 10:27:18.370 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Checking Token value: 
2024-06-28 10:27:18.370 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Found empty token: 
2024-06-28 10:27:20.325 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.50.19/auth/check_jwt: Header:{'Authorization': 'Bearer eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIyMDIyNDEwNTc3MTIiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzUxMTIwODQwLCJpYXQiOjE3MTk1ODQ4NDAsImp0aSI6Ijg3M2I5Njc0LTQ5NTEtNGUyOC1iNWIyLTQ0N2VjNzZkZjRjNyIsInVzZXJuYW1lIjoiZnJhbmtzYW50b3JvMDFAZ21haWwuY29tIn0.OQPAuDw58zYzg1crADefAeEDK-d-FyK1A1cj9R89zBi-fs8OilOD7HAGGAp1g9Qdf7_X1AkI0xFpdcA5SSmtlw'}
2024-06-28 10:27:20.976 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.50.19/auth/check_jwt: <Response [200 OK]>: <!DOCTYPE html><h2>Valid token.</h2>

2024-06-28 10:27:20.979 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Token is valid
2024-06-28 10:27:20.980 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.50.19/production.json: Header:{'Authorization': 'Bearer eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIyMDIyNDEwNTc3MTIiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzUxMTIwODQwLCJpYXQiOjE3MTk1ODQ4NDAsImp0aSI6Ijg3M2I5Njc0LTQ5NTEtNGUyOC1iNWIyLTQ0N2VjNzZkZjRjNyIsInVzZXJuYW1lIjoiZnJhbmtzYW50b3JvMDFAZ21haWwuY29tIn0.OQPAuDw58zYzg1crADefAeEDK-d-FyK1A1cj9R89zBi-fs8OilOD7HAGGAp1g9Qdf7_X1AkI0xFpdcA5SSmtlw'}
2024-06-28 10:27:21.637 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.50.19/production.json: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":26,"readingTime":1719584815,"wNow":5326,"whLifetime":733615},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1719584839,"wNow":5521.614,"whLifetime":16008586.002,"varhLeadLifetime":0.09,"varhLagLifetime":6709933.662,"vahLifetime":20389189.178,"rmsCurrent":45.865,"rmsVoltage":242.013,"reactPwr":529.583,"apprntPwr":5549.899,"pwrFactor":0.99,"whToday":7212.002,"whLastSevenDays":340867.002,"vahToday":11244.178,"varhLeadToday":0.09,"varhLagToday":5645.662}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1719584839,"wNow":1315.25,"whLifetime":25015288.579,"varhLeadLifetime":7517238.373,"varhLagLifetime":-5967538.911,"vahLifetime":28957503.762,"rmsCurrent":10.121,"rmsVoltage":242.001,"reactPwr":-260.21,"apprntPwr":1220.676,"pwrFactor":1.0,"whToday":18086.579,"whLastSevenDays":63.579,"vahToday":20808.762,"varhLeadToday":7119.373,"varhLagToday":0.0},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1719584839,"wNow":-4206.364,"whLifetime":9007613.554,"varhLeadLifetime":7517238.463,"varhLagLifetime":742394.751,"vahLifetime":28957503.762,"rmsCurrent":-35.744,"rmsVoltage":242.001,"reactPwr":-789.793,"apprntPwr":-4328.974,"pwrFactor":-1.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
2024-06-28 10:27:21.639 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.50.19/ivp/ensemble/inventory: Header:{'Authorization': 'Bearer eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIyMDIyNDEwNTc3MTIiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzUxMTIwODQwLCJpYXQiOjE3MTk1ODQ4NDAsImp0aSI6Ijg3M2I5Njc0LTQ5NTEtNGUyOC1iNWIyLTQ0N2VjNzZkZjRjNyIsInVzZXJuYW1lIjoiZnJhbmtzYW50b3JvMDFAZ21haWwuY29tIn0.OQPAuDw58zYzg1crADefAeEDK-d-FyK1A1cj9R89zBi-fs8OilOD7HAGGAp1g9Qdf7_X1AkI0xFpdcA5SSmtlw'}
2024-06-28 10:27:21.908 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.50.19/ivp/ensemble/inventory: <Response [200 OK]>: []
2024-06-28 10:27:21.909 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] HTTP GET Attempt #1: https://192.168.50.19/api/v1/production/inverters: Header:{'Authorization': 'Bearer eyJraWQiOiI3ZDEwMDA1ZC03ODk5LTRkMGQtYmNiNC0yNDRmOThlZTE1NmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJhdWQiOiIyMDIyNDEwNTc3MTIiLCJpc3MiOiJFbnRyZXoiLCJlbnBoYXNlVXNlciI6Im93bmVyIiwiZXhwIjoxNzUxMTIwODQwLCJpYXQiOjE3MTk1ODQ4NDAsImp0aSI6Ijg3M2I5Njc0LTQ5NTEtNGUyOC1iNWIyLTQ0N2VjNzZkZjRjNyIsInVzZXJuYW1lIjoiZnJhbmtzYW50b3JvMDFAZ21haWwuY29tIn0.OQPAuDw58zYzg1crADefAeEDK-d-FyK1A1cj9R89zBi-fs8OilOD7HAGGAp1g9Qdf7_X1AkI0xFpdcA5SSmtlw'}
2024-06-28 10:27:22.394 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.50.19/api/v1/production/inverters: <Response [200 OK]>: [
  {
    "serialNumber": "202214162818",
    "lastReportDate": 1719584693,
    "devType": 1,
    "lastReportWatts": 269,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214159618",
    "lastReportDate": 1719584782,
    "devType": 1,
    "lastReportWatts": 259,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214174294",
    "lastReportDate": 1719584662,
    "devType": 1,
    "lastReportWatts": 160,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214162828",
    "lastReportDate": 1719584514,
    "devType": 1,
    "lastReportWatts": 264,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168870",
    "lastReportDate": 1719584663,
    "devType": 1,
    "lastReportWatts": 258,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168770",
    "lastReportDate": 1719584783,
    "devType": 1,
    "lastReportWatts": 220,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168723",
    "lastReportDate": 1719584542,
    "devType": 1,
    "lastReportWatts": 151,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214162201",
    "lastReportDate": 1719584812,
    "devType": 1,
    "lastReportWatts": 270,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214167775",
    "lastReportDate": 1719584543,
    "devType": 1,
    "lastReportWatts": 32,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214162161",
    "lastReportDate": 1719584632,
    "devType": 1,
    "lastReportWatts": 25,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214160986",
    "lastReportDate": 1719584813,
    "devType": 1,
    "lastReportWatts": 260,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214165812",
    "lastReportDate": 1719584514,
    "devType": 1,
    "lastReportWatts": 256,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161015",
    "lastReportDate": 1719584693,
    "devType": 1,
    "lastReportWatts": 262,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168507",
    "lastReportDate": 1719584516,
    "devType": 1,
    "lastReportWatts": 24,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214168627",
    "lastReportDate": 1719584635,
    "devType": 1,
    "lastReportWatts": 24,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214165778",
    "lastReportDate": 1719584517,
    "devType": 1,
    "lastReportWatts": 253,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214158738",
    "lastReportDate": 1719584666,
    "devType": 1,
    "lastReportWatts": 157,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214165807",
    "lastReportDate": 1719584519,
    "devType": 1,
    "lastReportWatts": 260,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214169794",
    "lastReportDate": 1719584519,
    "devType": 1,
    "lastReportWatts": 258,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168158",
    "lastReportDate": 1719584520,
    "devType": 1,
    "lastReportWatts": 296,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161502",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 267,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161009",
    "lastReportDate": 1719584697,
    "devType": 1,
    "lastReportWatts": 283,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214169786",
    "lastReportDate": 1719584522,
    "devType": 1,
    "lastReportWatts": 265,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214174490",
    "lastReportDate": 1719584523,
    "devType": 1,
    "lastReportWatts": 25,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214163407",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 259,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161201",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 269,
    "maxReportWatts": 297
  }
]

2024-06-28 10:27:22.396 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://192.168.50.19/api/v1/production/inverters: <Response [200 OK]>: [
  {
    "serialNumber": "202214162818",
    "lastReportDate": 1719584693,
    "devType": 1,
    "lastReportWatts": 269,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214159618",
    "lastReportDate": 1719584782,
    "devType": 1,
    "lastReportWatts": 259,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214174294",
    "lastReportDate": 1719584662,
    "devType": 1,
    "lastReportWatts": 160,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214162828",
    "lastReportDate": 1719584514,
    "devType": 1,
    "lastReportWatts": 264,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168870",
    "lastReportDate": 1719584663,
    "devType": 1,
    "lastReportWatts": 258,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168770",
    "lastReportDate": 1719584783,
    "devType": 1,
    "lastReportWatts": 220,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168723",
    "lastReportDate": 1719584542,
    "devType": 1,
    "lastReportWatts": 151,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214162201",
    "lastReportDate": 1719584812,
    "devType": 1,
    "lastReportWatts": 270,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214167775",
    "lastReportDate": 1719584543,
    "devType": 1,
    "lastReportWatts": 32,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214162161",
    "lastReportDate": 1719584632,
    "devType": 1,
    "lastReportWatts": 25,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214160986",
    "lastReportDate": 1719584813,
    "devType": 1,
    "lastReportWatts": 260,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214165812",
    "lastReportDate": 1719584514,
    "devType": 1,
    "lastReportWatts": 256,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161015",
    "lastReportDate": 1719584693,
    "devType": 1,
    "lastReportWatts": 262,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168507",
    "lastReportDate": 1719584516,
    "devType": 1,
    "lastReportWatts": 24,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214168627",
    "lastReportDate": 1719584635,
    "devType": 1,
    "lastReportWatts": 24,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214165778",
    "lastReportDate": 1719584517,
    "devType": 1,
    "lastReportWatts": 253,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214158738",
    "lastReportDate": 1719584666,
    "devType": 1,
    "lastReportWatts": 157,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214165807",
    "lastReportDate": 1719584519,
    "devType": 1,
    "lastReportWatts": 260,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214169794",
    "lastReportDate": 1719584519,
    "devType": 1,
    "lastReportWatts": 258,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214168158",
    "lastReportDate": 1719584520,
    "devType": 1,
    "lastReportWatts": 296,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161502",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 267,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161009",
    "lastReportDate": 1719584697,
    "devType": 1,
    "lastReportWatts": 283,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214169786",
    "lastReportDate": 1719584522,
    "devType": 1,
    "lastReportWatts": 265,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214174490",
    "lastReportDate": 1719584523,
    "devType": 1,
    "lastReportWatts": 25,
    "maxReportWatts": 296
  },
  {
    "serialNumber": "202214163407",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 259,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202214161201",
    "lastReportDate": 1719584815,
    "devType": 1,
    "lastReportWatts": 269,
    "maxReportWatts": 297
  }
]

2024-06-28 10:27:22.399 DEBUG (MainThread) [custom_components.enphase_envoy] Retrieved data from API: {'production': 5521, 'daily_production': 7212, 'seven_days_production': 340867, 'lifetime_production': 16008586, 'consumption': 1315, 'daily_consumption': 18086, 'seven_days_consumption': 63, 'lifetime_consumption': 25015288, 'inverters_production': {'202214162818': [269, '2024-06-28 10:24:53'], '202214159618': [259, '2024-06-28 10:26:22'], '202214174294': [160, '2024-06-28 10:24:22'], '202214162828': [264, '2024-06-28 10:21:54'], '202214168870': [258, '2024-06-28 10:24:23'], '202214168770': [220, '2024-06-28 10:26:23'], '202214168723': [151, '2024-06-28 10:22:22'], '202214162201': [270, '2024-06-28 10:26:52'], '202214167775': [32, '2024-06-28 10:22:23'], '202214162161': [25, '2024-06-28 10:23:52'], '202214160986': [260, '2024-06-28 10:26:53'], '202214165812': [256, '2024-06-28 10:21:54'], '202214161015': [262, '2024-06-28 10:24:53'], '202214168507': [24, '2024-06-28 10:21:56'], '202214168627': [24, '2024-06-28 10:23:55'], '202214165778': [253, '2024-06-28 10:21:57'], '202214158738': [157, '2024-06-28 10:24:26'], '202214165807': [260, '2024-06-28 10:21:59'], '202214169794': [258, '2024-06-28 10:21:59'], '202214168158': [296, '2024-06-28 10:22:00'], '202214161502': [267, '2024-06-28 10:26:55'], '202214161009': [283, '2024-06-28 10:24:57'], '202214169786': [265, '2024-06-28 10:22:02'], '202214174490': [25, '2024-06-28 10:22:03'], '202214163407': [259, '2024-06-28 10:26:55'], '202214161201': [269, '2024-06-28 10:26:55']}}
2024-06-28 10:27:22.399 DEBUG (MainThread) [custom_components.enphase_envoy] Finished fetching envoy Envoy 202241057712 data in 4.029 seconds (success: True)
2024-06-28 10:27:22.399 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Envoy 202241057712 for enphase_envoy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/enphase_envoy/__init__.py", line 131, in async_setup_entry
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'. Did you mean: 'async_unload_platforms'?


![image|690x311](upload://AmFkpq6b2J0WyFcnJTnXaGE9ph6.png)

That error refers to a function that was deprecated from HA last year. So you are using an old version of that custom integration.