def _set_setting(self, settings):
        """Validate the settings and then send the PATCH request."""
        for key, value in settings.items():
            _validate_setting(key, value)

        try:
            self._settings_request(method="patch", json_data=settings)

            self.update(settings_json=settings)
        except SkybellException as exc:
            _LOGGER.warning("Exception changing settings: %s", settings)
            _LOGGER.warning(exc)
def _set_setting ( self , settings ) : for key , value in settings . items ( ) : _validate_setting ( key , value ) try : self . _settings_request ( method = "patch" , json_data = settings ) self . update ( settings_json = settings ) except SkybellException as exc : _LOGGER . warning ( "Exception changing settings: %s" , settings ) _LOGGER . warning ( exc )
Validate the settings and then send the PATCH request.