'Get the latest data from WSDOT.'

def update(self):

    params = {ATTR_ACCESS_CODE: self._access_code, ATTR_TRAVEL_TIME_ID: self._travel_time_id}
    response = requests.get(self.RESOURCE, params, timeout=10)
    if (response.status_code != 200):
        _LOGGER.warning('Invalid    response    from    WSDOT    API')
    else:
        self._data = response.json()
    self._state = self._data.get(ATTR_CURRENT_TIME)
