Closed catsmanac closed 1 year ago
After HACS update and restart log changed to:
[custom_components.enphase_gateway.enphase_token] New Enphase owner Token valid until: 2024-07-02 20:28:23+00:00
[custom_components.enphase_gateway.gateway_reader.gateway_reader] Setup Enphase gateway
[custom_components.enphase_gateway.gateway_reader.gateway_reader] HTTP GET Attempt #1: https://192.168.3.112/production.json: Header:{'Authorization': 'Bearer <token>'}
[custom_components.enphase_gateway.gateway_reader.gateway_reader] Received status_code 401 from Gateway
[custom_components.enphase_gateway.gateway_reader.gateway_reader] Request header: {'Authorization': 'Bearer <token>'}
[custom_components.enphase_gateway.gateway_reader.gateway_reader] Trying to update token
[py.warnings] /config/custom_components/enphase_gateway/gateway_reader/gateway_reader.py:289: RuntimeWarning: coroutine 'EnphaseToken.update' was never awaited
self._enphase_token.update()
Silly mistake. Should be finally fixed now.
4 is solved, this time I see missing attribute 'update'