workhorsy / py-cpuinfo

A module for getting CPU info with pure Python
MIT License
312 stars 59 forks source link

cpuspeed: Error on device update! #170

Closed delta010 closed 2 years ago

delta010 commented 2 years ago

In your bug report please include:

Bug i am using raspberry pi 4 with home assistant but the cpuinfo integration not showing any entity

Home Assistant Log `Logger: homeassistant.components.sensor Source: components/cpuspeed/sensor.py:85 Integration: Sensor (documentation, issues) First occurred: 8:44:08 AM (1 occurrences) Last logged: 8:44:08 AM

cpuspeed: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 709, in async_device_update await task File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/cpuspeed/sensor.py", line 85, in update ATTR_BRAND: info["brand_raw"], KeyError: brand_raw `

Diagnostics file config_entry-cpuspeed-3f83740a2335d17ea3c3e95417e65084.json.txt

Screenshot

Screenshot from 2022-02-03 09-31-44