Sensor Card doesn't work well on Google Nest Hub

I am using Google Nest Hub (2nd gen) as my dashboard with trusted network and user. I found that the sensor card doesn’t work quite well with it. When I have a sensor card with a graph (e.g. temperature, humidity), 90% of time it just doesn’t load. The circle is spinning, and the log shows an entry like below:

  • Login attempt or request with invalid authentication from x.x.x.x. Requested URL: ‘/api/history/period/2022-11-24T15:35:32.618Z?filter_entity_id=sensor.study_humidity&end_time=2022-11-25T15:35:32.618Z&minimal_response’. (Mozilla/5.0 (Linux; Android) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000)

while the rest of the dashboard works fine. And for the rest 10%, it could actually load. The History Graph Card, on the other hand, works just fine and can show the timeline well. Upgrade to the system to the latest version (Home Assistant 2022.11.4 Frontend 20221108.0) and it’s still the same. Anyone knows how to debug?

I added some code to dump the headers of the failed HTTP request, and here’s what I got:

‘Host’: ‘xxx.xxx.xxx:8123’,
‘Connection’: ‘keep-alive’,
‘sec-ch-ua’: ‘’,
‘Accept’: ‘/’,
‘sec-ch-ua-mobile’: ‘?0’,
‘User-Agent’: ‘Mozilla/5.0 (Linux; Android) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000’,
‘Sec-Fetch-Site’: ‘same-origin’,
‘Sec-Fetch-Mode’: ‘cors’,
‘Sec-Fetch-Dest’: ‘empty’,
‘Referer’: ‘https://xxx.xxx.xxx:8123/lovelace-study/default-view’,
‘Accept-Encoding’: ‘gzip, deflate, br’,
‘Accept-Language’: ‘en-US,en;q=0.9’

It seems that the authorization header is missing, but I am not sure if it is redacted by the library or is indeed missing.

Reported the issue here: Sensor Card doesn't show in Google Nest Hub · Issue #14465 · home-assistant/frontend · GitHub