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
@@ -22,8 +22,9 @@ REQUIREMENTS = ['xmltodict==0.11.0']
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
_RESOURCE = 'http://www.zillow.com/webservice/GetZestimate.htm'
|
||||
|
||||
ATTRIBUTION = "Data provided by Zillow.com"
|
||||
|
||||
CONF_ZPID = 'zpid'
|
||||
CONF_ATTRIBUTION = "Data provided by Zillow.com"
|
||||
|
||||
DEFAULT_NAME = 'Zestimate'
|
||||
NAME = 'zestimate'
|
||||
@@ -93,7 +94,7 @@ class ZestimateDataSensor(Entity):
|
||||
if self.data is not None:
|
||||
attributes = self.data
|
||||
attributes['address'] = self.address
|
||||
attributes[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
|
||||
attributes[ATTR_ATTRIBUTION] = ATTRIBUTION
|
||||
return attributes
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user