(self, path)
Write video to file.

        :param path: Path to write file
Write video to file.
Write video to file .
def video_to_file(self, path):
        """
        Write video to file.

        :param path: Path to write file
        """
        _LOGGER.debug("Writing video from %s to %s", self.name, path)
        response = self.get_media(media_type="video")
        if response is None:
            _LOGGER.error("No saved video exist for %s.", self.name)
            return
        with open(path, "wb") as vidfile:
            copyfileobj(response.raw, vidfile)
def video_to_file ( self , path ) : _LOGGER . debug ( "Writing video from %s to %s" , self . name , path ) response = self . get_media ( media_type = "video" ) if response is None : _LOGGER . error ( "No saved video exist for %s." , self . name ) return with open ( path , "wb" ) as vidfile : copyfileobj ( response . raw , vidfile )