Make sensor.ring to handle scan_interval option as expected. (#6886)

* Make sensor.ring to handle scan_interval option as expected.

* Fix lint

* Fixed lint timedelta
This commit is contained in:
Marcelo Moreira de Mello authored and Paulus Schoutsen committed 2017-04-02 23:46:54 -07:00
1 parent 5b8f1850fa
commit f4d2ece2fe
2 files changed
+7 -6

No files matched your search

-2
View File
@@ -4,7 +4,6 @@ Support for Ring Doorbell/Chimes.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/ring/
"""
from datetime import timedelta
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
@@ -26,7 +25,6 @@ NOTIFICATION_TITLE = 'Ring Sensor Setup'
DOMAIN = 'ring'
DEFAULT_CACHEDB = '.ring_cache.pickle'
DEFAULT_ENTITY_NAMESPACE = 'ring'
DEFAULT_SCAN_INTERVAL = timedelta(seconds=30)
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({