Skip to content

Error "invalid literal for int() with base 10: 'INIT'" in Home Assistant #35

@cjmjmartens

Description

@cjmjmartens

In Home Assistant, I get the following error often: unhandled exception for the Dyson integration:

Source: /usr/src/homeassistant/homeassistant/bootstrap.py:310
First occurred: 21:10:31 (1 occurrences)
Last logged: 21:10:31

Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
rc = self.loop(timeout, max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
rc = self.loop_read(max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1572, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2936, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3216, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3444, in _handle_on_message
self.on_message(self, self._userdata, message)
File "/usr/local/lib/python3.8/site-packages/libpurecool/dyson_pure_cool_link.py", line 106, in on_message
device_msg = DysonEnvironmentalSensorState(payload)
File "/usr/local/lib/python3.8/site-packages/libpurecool/dyson_pure_state.py", line 122, in init
self._dust = int(self.__get_field_value(data, 'pact'))
ValueError: invalid literal for int() with base 10: 'INIT'

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