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:
parent
03ec3ac16e
commit
cdc4dc3f11
66 changed files with 232 additions and 239 deletions
|
@ -24,8 +24,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
URL = 'http://www.sytadin.fr/sys/barometres_de_la_circulation.jsp.html'
|
||||
|
||||
CONF_ATTRIBUTION = "Data provided by Direction des routes Île-de-France" \
|
||||
"(DiRIF)"
|
||||
ATTRIBUTION = "Data provided by Direction des routes Île-de-France (DiRIF)"
|
||||
|
||||
DEFAULT_NAME = 'Sytadin'
|
||||
REGEX = r'(\d*\.\d+|\d+)'
|
||||
|
@ -95,7 +94,7 @@ class SytadinSensor(Entity):
|
|||
def device_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {
|
||||
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
|
||||
ATTR_ATTRIBUTION: ATTRIBUTION,
|
||||
}
|
||||
|
||||
def update(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue