The gateway rx_rate and tx_rate is not (longer) available via the /devices api endpoint details.
Instead, we have to call / device/gateways/ api endpoint to get the gateway details.
From these details, we get the portStats for the WAN port and get the rxRate and txRate values to populate the rx_rate and tx_rate values.
So rx_rate and tx_rate of the gateway represents the internet WAN download/upload speed.
Fixes https://github.com/zachcheatham/ha-omada/issues/92
The gateway rx_rate and tx_rate is not (longer) available via the /devices api endpoint details. Instead, we have to call / device/gateways/ api endpoint to get the gateway details. From these details, we get the portStats for the WAN port and get the rxRate and txRate values to populate the rx_rate and tx_rate values. So rx_rate and tx_rate of the gateway represents the internet WAN download/upload speed. Fixes https://github.com/zachcheatham/ha-omada/issues/92
Replaces https://github.com/zachcheatham/ha-omada/pull/99