diff --git a/Dockerfile b/Dockerfile index a3ec879..179804e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Dockerfile for Domoticz-Google-Assistant # Install minimal Python 3. -FROM jfloff/alpine-python:3.7-slim +FROM python:3-alpine RUN mkdir -p config @@ -9,11 +9,12 @@ COPY *.py / COPY templates/ /templates/ COPY static/ /static/ COPY requirements/pip-requirements.txt /requirements.txt +RUN pip install --no-cache-dir -r /requirements.txt # Create volume VOLUME /config # Configure Services and Port -CMD ["python3 /__main__.py"] +CMD ["python3", "/__main__.py"] EXPOSE 3030 diff --git a/const.py b/const.py index 9e418de..4d1bbbd 100644 --- a/const.py +++ b/const.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Constants for Google Assistant.""" -VERSION = '1.23.6' +VERSION = '1.23.7' PUBLIC_URL = 'https://[your public url]' CONFIGFILE = 'config/config.yaml' LOGFILE = 'dzga.log' diff --git a/smarthome.py b/smarthome.py index 28bbd75..71f3322 100644 --- a/smarthome.py +++ b/smarthome.py @@ -759,7 +759,7 @@ def syncDevices_post(self, s): raise SmartHomeError(ERR_PROTOCOL_ERROR, 'not authorized access!!') r = self.forceDevicesSync() - s.send_message(200, 'Synchronization request sent, status_code: ' + st(r)) + s.send_message(200, 'Synchronization request sent, status_code: ' + str(r)) def notification_post(self, s): logger.debug(s.headers) @@ -851,7 +851,8 @@ def forceDevicesSync(self): userAgent = self.getUserAgent() enableReport = ReportState.enable_report_state() if userAgent is None: - return 500 # internal error + # return 500 # internal error + userAgent = "1234" data = {"agentUserId": userAgent} if enableReport: