From 9315daa94a105aa62f86b8ea970c4e27cec38dfd Mon Sep 17 00:00:00 2001 From: lfasci Date: Wed, 16 Jun 2021 22:00:23 +0200 Subject: [PATCH] Modified manifest.json to match new requirements, chaged the folder name with underscore --- README.md | 2 +- prometheus_query/manifest.json | 3 +-- prometheus_query/sensor.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 264f6e7..c49cebd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ To enable it, add the following lines to your `configuration.yaml`: ```yaml # Example configuration.yaml entry sensor: - - platform: prometheus-query + - platform: prometheus_query name: Temperature Pisa prometheus_url: http://localhost:9090 prometheus_query: temperature{location="Pisa",province="PI",region="Tuscany"} diff --git a/prometheus_query/manifest.json b/prometheus_query/manifest.json index bee71bc..61d1be4 100644 --- a/prometheus_query/manifest.json +++ b/prometheus_query/manifest.json @@ -3,7 +3,6 @@ "name": "Prometheus query sensor", "version": "2021.06.1", "documentation": "https://github.com/lfasci/homeassistant-prometheus-query", - "dependencies": "prometheus_client", "codeowners": ["lfasci"], - "requirements": ["prometheus_client","requests"] + "requirements": ["prometheus-client==0.9.0", "requests==2.25.0"] } diff --git a/prometheus_query/sensor.py b/prometheus_query/sensor.py index 17889b8..98f4318 100644 --- a/prometheus_query/sensor.py +++ b/prometheus_query/sensor.py @@ -15,7 +15,6 @@ from homeassistant.const import ( from prometheus_client import Summary -DOMAIN = 'prometheus' CONF_PROMETHEUS_URL = 'prometheus_url' CONF_PROMETHEUS_QUERY = 'prometheus_query' SCAN_INTERVAL = timedelta(seconds=600)