LocalTuya not loaded due to an invalid config since updating to 4.1.0
Environment
Localtuya version: 4.1.0
Last working localtuya version (if known and relevant): 4.0.1
Home Assistant Core version: 2022.9.1
[] Are you using the Home Assistant Tuya Cloud component ?
[] Are you using the Tuya App in parallel ?
Steps to reproduce
Updated to 4.1.0
Restarted
3.Issue presented
Provide Home Assistant taceback/logs
2022-09-14 11:13:36.276 ERROR (MainThread) [homeassistant.config] Invalid config for [localtuya]: value must be one of ['binary_sensor'] for dictionary value @ data['localtuya'][0]['entities'][0]['platform']. Got 'switch'. (See /config/configuration.yaml, line 193). Please check the docs at https://github.com/rospogrigio/localtuya/
2022-09-14 11:13:36.281 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration localtuya: Invalid config.
The problem
LocalTuya not loaded due to an invalid config since updating to 4.1.0
Environment
Steps to reproduce
Provide Home Assistant taceback/logs