Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'X' object has no attribute 'status' #3

Open
oraveczt opened this issue Jun 21, 2022 · 0 comments
Open

AttributeError: 'X' object has no attribute 'status' #3

oraveczt opened this issue Jun 21, 2022 · 0 comments

Comments

@oraveczt
Copy link

root@pizerow:/home/pi# ./ospiLCD-mqtt.py
[Connected with result code 0]
Msg:opensprinkler/availability: online
Traceback (most recent call last):
File "./ospiLCD-mqtt.py", line 258, in
client.loop_forever()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "./ospiLCD-mqtt.py", line 71, in mqtt_message
update_display()
File "./ospiLCD-mqtt.py", line 95, in update_display
if ja.status.sn[x] == 0:
AttributeError: 'X' object has no attribute 'status'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant