<!-- Before you open a new issue, search through the existing issues to see if others have had the same problem. Issues not containing the minimum requirements will be closed: - Issues without a description (using the header is not good enough) will be closed. - Issues without debug logging will be closed. - Issues without configuration will be closed --> ## Version of the custom_component 0.3.0 <!-- If you are not using the newest version, download and try that before opening an issue If you are unsure about the version check the const.py file. --> ## Describe the bug When toggling a switch, home assistant shows a pop-up: ``` Failed to call service switch/turn_on. Local variable 'resp' used before assignment. ```