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:
1 parent
03ec3ac16e
commit
cdc4dc3f11
66 files changed
+232
-239
No files matched your search
@@ -29,8 +29,8 @@ REQUIREMENTS = ['xmltodict==0.11.0']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONF_ATTRIBUTION = "Weather forecast from met.no, delivered " \
|
||||
"by the Norwegian Meteorological Institute."
|
||||
ATTRIBUTION = "Weather forecast from met.no, delivered by the Norwegian " \
|
||||
"Meteorological Institute."
|
||||
# https://api.met.no/license_data.html
|
||||
|
||||
SENSOR_TYPES = {
|
||||
@@ -134,7 +134,7 @@ class YrSensor(Entity):
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {
|
||||
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
|
||||
ATTR_ATTRIBUTION: ATTRIBUTION,
|
||||
}
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user