(request: WSGIRequest)
Updates the wled port.
Updates the wled port.
Updates the wled port .
def set_wled_port(request: WSGIRequest) -> None:
    """Updates the wled port."""
    value = int(request.POST.get("value"))  # type: ignore
    if not (1024 <= value <= 65535):
        return
    storage.set("wled_port", value)
    _notify_settings_changed("wled")
def set_wled_port ( request : WSGIRequest ) -> None : value = int ( request . POST . get ( "value" ) ) # type: ignore if not ( 1024 <= value <= 65535 ) : return storage . set ( "wled_port" , value ) _notify_settings_changed ( "wled" )