Weather Underground sensor error

i get this error from day one on hassio . i use a vm base on Ubuntu to hot the hassio.
has any one any idea how to fix it ?

2017-07-09 15:56:54 ERROR (SyncWorker_4) [homeassistant.components.sensor.wunderground] Check WUnderground API (‘this key does not exist’,)
2017-07-09 15:56:54 ERROR (MainThread) [homeassistant.components.sensor] Error while update entity from wunderground in sensor
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 450, in _update_entity_states
yield from update_coro
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 255, in async_update_ha_state
self._attr_setter(‘entity_picture’, str, ATTR_ENTITY_PICTURE, attr)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 322, in _attr_setter
value = getattr(self, name)
File “/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py”, line 713, in entity_picture
return re.sub(r’^http://’, ‘https://’, url, flags=re.IGNORECASE)
File “/usr/lib/python3.6/re.py”, line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

you may have mis-typed your weather-underground API key in configuration.yaml

no because :

  1. it is working despite the error. (it currently show the live data )
  2. i copy paste it .

Try a reset of your API key at the WU dev site and then update the key in HA and restart.

nope that didn’t work :confused:
i am still getting the same error

Can you post your config? Maybe something wrong in the formatting?

# Weather Prediction
sensor:
  - platform: fixer
    target: USD
    base: EUR
  - platform: google_travel_time
    name: To Work
    api_key: APIKEY
    origin: ADDRESS
        #Place ID: PLACEID
    destination: ADDRESS
       # Place ID: PLACEID
    options:
        mode: driving
  - platform: speedtest
    monitored_conditions:
      - download
      - upload
      - ping
 # - platform: yr
   # monitored_conditions:
    #  - temperature
     # - symbol
      #- humidity
  - platform: wunderground
    api_key: APIKEY (like 91955c768ksa4i4a5 Not my key :-P )
    monitored_conditions:
      - weather
      - dewpoint_c
      - feelslike_c
      - heat_index_c
      - elevation
      - location
      - observation_time
      - pressure_mb
      - relative_humidity
      - station_id
      - temp_c
      - UV
      - visibility_km
      - wind_dir
      - wind_gust_kph
      - wind_kph
      - wind_string

It all looks correct from what I can see. And if you are getting live data, then your API key has to be correct.

I would consider opening an issue on Github; it may be some kind of uncaught exception or something on WU’s end (which has happened and WU people do check in on Github when they see mentions).