richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration
https://pypi.org/project/IoTuring/
GNU General Public License v3.0
82 stars 6 forks source link

Check entity support #88

Closed infeeeee closed 10 months ago

infeeeee commented 11 months ago

Check if entity supported in configuration menu and before initialization.

Entities should override the CheckSystemSupport class method, and raise an exception if the system is not supported, that's all. All related code from Initialize moved to this new classmethod in existing entities.

Resolves #50

Based on #86 so it should be pulled before, and you can see that changes here as well, but if you don't want to pull that yet, I think I can rebase to main.

If you want to see changes related to only this, see this comparison: https://github.com/infeeeee/IoTuring/compare/OpenInEditor...infeeeee:IoTuring:CheckEntitySupport

TODO, Remaining entities to update:

richibrics commented 11 months ago

Really nice, could you please rebase with the main new commits please ?

infeeeee commented 11 months ago

@richibrics Can you take a look at the new changes in the configurator menu? Now it handles small terminals much better. It also lists unsupported entities, and the reason why they are unsupported.

richibrics commented 10 months ago

Hi @infeeeee, it works really great. Nice job 👍