Skip to content

Plugin loads but doesn't display anything #6

@nweddell

Description

@nweddell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions