I've recently installed CBPI4 after using CBPI3 for about a year without any problems. The LCD worked fine with CBPI3.
The plugin loads fine, no errors and the i2c address is recognised but nothing appears on the display. When the CBPI server is stopped I get the following error:
2022-06-14:13:22:00,928 ERROR [base_events.py:1738] Task exception was never retrieved
future: <Task finished name='Task-5' coro=<LCDisplay.run() done, defined at /usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py:127> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py", line 167, in run
sensor_for_sensor_mode = await self.set_lcd_sensortype_for_sensor_mode()
File "/usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py", line 588, in set_lcd_sensortype_for_sensor_mode
sensor_type = (sensor_values["sensor_type"])
TypeError: 'NoneType' object is not subscriptable
I've done a number of clean installs of CBPI4 and re-installs of the plugin but the error persists. Any ideas?
Many thanks in advance.
Nick
I've recently installed CBPI4 after using CBPI3 for about a year without any problems. The LCD worked fine with CBPI3.
The plugin loads fine, no errors and the i2c address is recognised but nothing appears on the display. When the CBPI server is stopped I get the following error:
2022-06-14:13:22:00,928 ERROR [base_events.py:1738] Task exception was never retrieved
future: <Task finished name='Task-5' coro=<LCDisplay.run() done, defined at /usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py:127> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py", line 167, in run
sensor_for_sensor_mode = await self.set_lcd_sensortype_for_sensor_mode()
File "/usr/local/lib/python3.9/dist-packages/cbpi4-LCDisplay/init.py", line 588, in set_lcd_sensortype_for_sensor_mode
sensor_type = (sensor_values["sensor_type"])
TypeError: 'NoneType' object is not subscriptable
I've done a number of clean installs of CBPI4 and re-installs of the plugin but the error persists. Any ideas?
Many thanks in advance.
Nick