Closed MuratUrsavas closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@MuratUrsavas in hm-pyhelper would we put:
'STATUS': False,
and 'BUTTON': False,
if they didn't exist? Or just leave them out entirely?
Or is either ok?
@shawaj We have to leave them out as otherwise it would return something (False), and it would break current code and give exceptions. It depends on missing keys.
@shawaj We have to leave them out as otherwise it would return something (False), and it would break current code and give exceptions. It depends on missing keys.
Ok perfect. So we just leave them out of pyhelper if no button or LED. Nice 👍
I'll put a note on that repo to update the readme to reflect that https://github.com/NebraLtd/hm-pyhelper/issues/211
Issue
172
How If a user button or status led definition is missing in a variant definition, that part of the code is passed gracefully now.
Checklist