Update docstring (quotes, links, content) (#5602)

This commit is contained in:
Fabian Affolter 2017-01-28 16:02:19 +01:00 committed by GitHub
parent 72bc8fc5bf
commit e1412a223c
9 changed files with 32 additions and 33 deletions

View file

@ -1,7 +1,8 @@
"""
Support for Washington State Department of Transportation (WSDOT) data.
Data provided by WSDOT is documented at http://wsdot.com/traffic/api/
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.wsdot/
"""
import logging
import re
@ -17,7 +18,6 @@ from homeassistant.const import (
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
CONF_TRAVEL_TIMES = 'travel_time'
@ -109,7 +109,7 @@ class WashingtonStateTravelTimeSensor(WashingtonStateTransportSensor):
response = requests.get(self.RESOURCE, params, timeout=10)
if response.status_code != 200:
_LOGGER.warning('Invalid response from WSDOT API.')
_LOGGER.warning("Invalid response from WSDOT API")
else:
self._data = response.json()
self._state = self._data.get(ATTR_CURRENT_TIME)