Rename CONF_ATTRIBUTION to ATTRIBUTION (#21069)

* Rename CONF_ATTRIBUTION to ATTRIBUTION

* Update homeassistant/components/sensor/irish_rail_transport.py

Co-Authored-By: fabaff <mail@fabian-affolter.ch>
This commit is contained in:
Fabian Affolter 2019-02-14 22:09:22 +01:00 committed by GitHub
parent 03ec3ac16e
commit cdc4dc3f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 232 additions and 239 deletions

View file

@ -16,9 +16,10 @@ CURRENCY_ICONS = {
'LTC': 'mdi:litecoin',
'USD': 'mdi:currency-usd'
}
DEFAULT_COIN_ICON = 'mdi:coin'
CONF_ATTRIBUTION = "Data provided by coinbase.com"
ATTRIBUTION = "Data provided by coinbase.com"
DATA_COINBASE = 'coinbase_cache'
DEPENDENCIES = ['coinbase']
@ -77,7 +78,7 @@ class AccountSensor(Entity):
def device_state_attributes(self):
"""Return the state attributes of the sensor."""
return {
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
ATTR_ATTRIBUTION: ATTRIBUTION,
ATTR_NATIVE_BALANCE: "{} {}".format(
self._native_balance, self._native_currency),
}
@ -127,7 +128,7 @@ class ExchangeRateSensor(Entity):
def device_state_attributes(self):
"""Return the state attributes of the sensor."""
return {
ATTR_ATTRIBUTION: CONF_ATTRIBUTION
ATTR_ATTRIBUTION: ATTRIBUTION
}
def update(self):