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

@ -19,7 +19,7 @@ REQUIREMENTS = ['blockchain==1.4.4']
_LOGGER = logging.getLogger(__name__)
CONF_ATTRIBUTION = "Data provided by blockchain.info"
ATTRIBUTION = "Data provided by blockchain.info"
DEFAULT_CURRENCY = 'USD'
@ -112,7 +112,7 @@ class BitcoinSensor(Entity):
def device_state_attributes(self):
"""Return the state attributes of the sensor."""
return {
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
ATTR_ATTRIBUTION: ATTRIBUTION,
}
def update(self):