Use constants from const.py (#21068)

* Use constants from const.py

* Fix lint issues
This commit is contained in:
Fabian Affolter authored and GitHub committed 2019-02-19 14:09:06 +01:00
1 parent 9d3eaada27
commit 2d2c6cf4a1
21 files changed
+105 -188

No files matched your search

+3 -9
View File
@@ -1,21 +1,15 @@
"""
Support for Ripple sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.ripple/
"""
"""Support for Ripple sensors."""
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (CONF_NAME, ATTR_ATTRIBUTION)
from homeassistant.const import ATTR_ATTRIBUTION, CONF_ADDRESS, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['python-ripple-api==0.0.3']
CONF_ADDRESS = 'address'
ATTRIBUTION = "Data provided by ripple.com"
DEFAULT_NAME = 'Ripple Balance'