(self, request: Request)
return Response(status=200)
Handle Yandex Smart Home HEAD requests.
Handle Yandex Smart Home HEAD requests.
Handle Yandex Smart Home HEAD requests .
async def head(self, request: Request) -> Response:
        """Handle Yandex Smart Home HEAD requests."""
        _LOGGER.debug('Request: %s (HEAD)' % request.url)

        if not self._is_direct_connection(request):
            _LOGGER.debug('Integration is not enabled or use cloud connection')
            return Response(status=404)

        return Response(status=200)
async def head ( self , request : Request ) -> Response : _LOGGER . debug ( 'Request: %s (HEAD)' % request . url ) if not self . _is_direct_connection ( request ) : _LOGGER . debug ( 'Integration is not enabled or use cloud connection' ) return Response ( status = 404 ) return Response ( status = 200 )