Use constants (#3284)

This commit is contained in:
Fabian Affolter authored and GitHub committed 2016-09-11 09:24:07 +02:00
1 parent cce3e284d7
commit d48ed41122
3 files changed
+14 -22

No files matched your search

@@ -9,18 +9,15 @@ from datetime import timedelta
import requests
from homeassistant.components.binary_sensor import (BinarySensorDevice,
SENSOR_CLASSES)
from homeassistant.components.binary_sensor import (
BinarySensorDevice, SENSOR_CLASSES)
from homeassistant.const import CONF_RESOURCE, CONF_PIN
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
# Return cached results if last scan was less then this time ago
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30)
CONF_RESOURCE = 'resource'
CONF_PIN = 'pin'
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the aREST binary sensor."""