Update docstrings (#7374)

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
This commit is contained in:
Fabian Affolter authored and Paulus Schoutsen committed 2017-05-02 09:18:47 -07:00
1 parent 0e08925259
commit a4f1f6e724
340 files changed
+1533 -1708

No files matched your search

+5 -5
View File
@@ -102,14 +102,14 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
if station is not None:
if zone_id and wmo_id:
_LOGGER.warning(
'Using config "%s", not "%s" and "%s" for BOM sensor',
"Using config %s, not %s and %s for BOM sensor",
CONF_STATION, CONF_ZONE_ID, CONF_WMO_ID)
elif zone_id and wmo_id:
station = '{}.{}'.format(zone_id, wmo_id)
else:
station = closest_station(config.get(CONF_LATITUDE),
config.get(CONF_LONGITUDE),
hass.config.config_dir)
station = closest_station(
config.get(CONF_LATITUDE), config.get(CONF_LONGITUDE),
hass.config.config_dir)
if station is None:
_LOGGER.error("Could not get BOM weather station from lat/lon")
return False
@@ -186,7 +186,7 @@ class BOMCurrentData(object):
def _build_url(self):
url = _RESOURCE.format(self._zone_id, self._zone_id, self._wmo_id)
_LOGGER.info("BOM url %s", url)
_LOGGER.info("BOM URL %s", url)
return url
@Throttle(MIN_TIME_BETWEEN_UPDATES)