mirror of
https://github.com/nikdoof/homeassistant-prometheus-query.git
synced 2025-12-18 04:59:21 +00:00
Remove unneeded imports
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import logging, time
|
||||
import logging
|
||||
import requests
|
||||
import json
|
||||
import voluptuous as vol
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from datetime import timedelta
|
||||
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.util import Throttle
|
||||
from homeassistant.const import (
|
||||
CONF_NAME,
|
||||
CONF_UNIT_OF_MEASUREMENT,
|
||||
@@ -19,8 +16,6 @@ from homeassistant.components.sensor import (
|
||||
STATE_CLASSES_SCHEMA,
|
||||
)
|
||||
|
||||
from prometheus_client import Summary
|
||||
|
||||
CONF_PROMETHEUS_URL = 'prometheus_url'
|
||||
CONF_PROMETHEUS_QUERY = 'prometheus_query'
|
||||
CONF_STATE_CLASS = 'state_class'
|
||||
|
||||
Reference in New Issue
Block a user