### The problem
After update from 2022.10.1 to 2022.10.2 or 2022.10.3 all previ…ous visible/working Tuya devices are missing from the Tuya integration. Reinstalling or recreating new project on Tuya cloud does not help.
Log shows following related errormessages:
---
Logger: tuya_iot
Source: /usr/local/lib/python3.10/site-packages/tuya_iot/openmq.py:166
First occurred: 09:34:37 (1 occurrences)
Last logged: 09:34:37
error while get mqtt config
---
Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:342
First occurred: 09:34:37 (1 occurrences)
Last logged: 09:34:37
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/site-packages/tuya_iot/openmq.py", line 161, in run
time.sleep(self.mq_config.expire_time - 60)
AttributeError: 'NoneType' object has no attribute 'expire_time'
---
### What version of Home Assistant Core has the issue?
>= 2022.10.2
### What was the last working version of Home Assistant Core?
2022.10.1
### What type of installation are you running?
Home Assistant Supervised
### Integration causing the issue
Tuya
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya
### Diagnostics information
{
"home_assistant": {
"installation_type": "Home Assistant Supervised",
"version": "2022.10.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "5.15.0-1015-raspi",
"supervisor": "2022.10.0",
"host_os": "Ubuntu 22.04.1 LTS",
"docker_version": "20.10.18",
"chassis": "",
"run_as_root": true
},
"custom_components": {
"average": {
"version": "2.3.0",
"requirements": []
},
"dwd_weather": {
"version": "1.2.24",
"requirements": [
"simple_dwd_weatherforecast==1.1.5",
"markdownify==0.6.5"
]
},
"hacs": {
"version": "1.27.2",
"requirements": [
"aiogithubapi>=22.2.4"
]
}
},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"documentation": "https://www.home-assistant.io/integrations/tuya",
"requirements": [
"tuya-iot-py-sdk==0.6.6"
],
"dependencies": [
"ffmpeg"
],
"codeowners": [
"@Tuya",
"@zlinoliver",
"@frenck"
],
"config_flow": true,
"iot_class": "cloud_push",
"dhcp": [
{
"macaddress": "105A17*"
},
{
"macaddress": "10D561*"
},
{
"macaddress": "1869D8*"
},
{
"macaddress": "381F8D*"
},
{
"macaddress": "508A06*"
},
{
"macaddress": "68572D*"
},
{
"macaddress": "708976*"
},
{
"macaddress": "7CF666*"
},
{
"macaddress": "84E342*"
},
{
"macaddress": "D4A651*"
},
{
"macaddress": "D81F12*"
}
],
"loggers": [
"tuya_iot"
],
"is_built_in": true
},
"data": {
"endpoint": "https://openapi.tuyaeu.com",
"auth_type": 0,
"country_code": "49",
"app_type": "tuyaSmart",
"mqtt_connected": null,
"disabled_by": null,
"disabled_polling": false,
"devices": []
}
}
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
Logger: tuya_iot
Source: /usr/local/lib/python3.10/site-packages/tuya_iot/openmq.py:166
First occurred: 09:34:37 (1 occurrences)
Last logged: 09:34:37
error while get mqtt config
---
Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:342
First occurred: 09:34:37 (1 occurrences)
Last logged: 09:34:37
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/site-packages/tuya_iot/openmq.py", line 161, in run
time.sleep(self.mq_config.expire_time - 60)
AttributeError: 'NoneType' object has no attribute 'expire_time'
---
```
### Additional information
_No response_