home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

Configuration checker issue with hass.io release 101.2 #28469

Closed franmiele closed 4 years ago

franmiele commented 4 years ago

Home Assistant release with the issue:

Last working Home Assistant release (if known): 100.3

Operating environment (Hass.io/Docker/Windows/etc.):

HASS.io 100.3 on RPI4 **Integration:**

Description of problem:

getting following errors when running config checker against release 101.2

AttributeError: module 'aiohttp' has no attribute 'web' Fatal error while loading config: module 'aiohttp' has no attribute 'web' Failed config General Errors:

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


`homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 41.790310
  longitude: -72.613

  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York
  # Customization file
  customize: !include customize.yaml

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

history:
  include:
    entities:
      - device_tracker.franm_fde5f1f3_6944_4bfe_b612_9401b202c4a2_2
      - device_tracker.lum_2586392f_6979_4b69_a8be_b22992d7990d_2
      - device_tracker.fran_bayesian
      - device_tracker.lucille_bayesian
      - device_tracker.life360_fran_miele
      - device_tracker.life360_lucille_miele
      - sensor.ehct_06108_temperature

  exclude:
    domains:
      - automation
      - weblink
      - updater
      - media_player
    entities:
      - sun.sun
      - remote.bedroom_apple_tv
      - remote.family_room_apple_tv
      - sensor.arris_tg1682g_bytes_sent
      - sensor.arris_tg1682g_packets_sec_sent
      - sensor.arris_tg1682g_kbyte_sec_sent
      - sensor.arris_tg1682g_packets_sent
      - sensor.arris_tg1682g_packets_sec_received
      - sensor.arris_tg1682g_kbyte_sec_received
      - sensor.arris_tg1682g_packets_received
      - sensor.arris_tg1682g_bytes_received
      - binary_sensor.side_door_motion_motion
      - binary_sensor.back_door_motion_motion
      - binary_sensor.driveway_motion2_motion

frontend:
    themes: !include themes.yaml

sun:    

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Discover some devices automatically
discovery:
  ignore:
    - homekit

bloomsky:
  api_key:

# Sensors
sensor:
  # Weather prediction
   - platform: yr

   #- platform: wunderground
    # api_key:
     #pws_id: KCTEASTH39
     #monitored_conditions:
      # - weather_1d
      # - temp_f
      # - dewpoint_f
      # - precip_today_in
      # - wind_dir
      # - wind_gust_mph

   - platform: bloomsky
     monitored_conditions:
      - Temperature
      - Humidity
      - Pressure
      - UVIndex
      - Luminance
      - Voltage  

   - platform: darksky
     api_key:
     forecast:
       - 0
     hourly_forecast:
       - 0
       - 1
     monitored_conditions:
       - summary
       - minutely_summary
       - hourly_summary
       - daily_summary
       - icon
       - temperature
       - apparent_temperature
       - temperature_low
       - temperature_high
       - precip_type
       - wind_speed
       - wind_gust
       - wind_bearing
       - precip_probability
       - precip_intensity
       - precip_accumulation
       - alerts
       - sunrise_time
       - sunset_time

   - platform: hydrawise
     monitored_conditions:
         - watering_time
         - next_cycle

   - platform: ted5000
     host: 192.168.5.xxx

switch:
   - platform: hydrawise
     monitored_conditions:
       - auto_watering
       - manual_watering

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
#zone: !include zones.yaml

input_boolean:
  me_present:
    name: Me
    icon: mdi:account
  wife_present:
    name: Wife
    icon: mdi:account

cloud:

device_tracker:
  - platform: xfinity
    host: 192.168.5.1
    interval_seconds: 30
    consider_home: 180
    new_device_defaults:
      track_new_devices: true

  - platform: nmap_tracker
    hosts:
      - 192.168.5.xx
      - 192.168.5.xx
    home_interval: 10
    consider_home: 180

ios:

logger:
  default: critical
  logs:
    pubnub: critical
    urllib3.connectionpool: error

person:

owntracks:
    max_gps_accuracy: 100

wink:

zone:
     name: Home
     latitude: 41.790310
     longitude: -72.613
     radius: 150
     icon: mdi:home

binary_sensor:     
    - platform: bayesian
      prior: 0.5
      name: 'Fran_Presence'
      device_class: 'presence'
      probability_threshold: 0.9
      observations:
        - entity_id: 'device_tracker.life360_fran_miele'
          prob_given_true: 0.9
          prob_given_false: 0.1
          platform: 'state'
          to_state: 'home'
        - entity_id: 'device_tracker.fran_iphone'
          prob_given_true: 0.9
          prob_given_false: 0.5
          platform: 'state'
          to_state: 'home'
        - entity_id: 'device_tracker.franm_fde5f1f3_6944_4bfe_b612_9401b202c4a2_2'
          prob_given_true: 0.9
          prob_given_false: 0.1
          platform: 'state'
          to_state: 'home'

    - platform: bayesian
      prior: 0.5
      name: 'Lucille_Presence'
      device_class: 'presence'
      probability_threshold: 0.9
      observations:
        - entity_id: 'device_tracker.life360_lucille_miele'
          prob_given_true: 0.9
          prob_given_false: 0.1
          platform: 'state'
          to_state: 'home'
        - entity_id: 'device_tracker.lucilles_iphone'
          prob_given_true: 0.9
          prob_given_false: 0.5
          platform: 'state'
          to_state: 'home'
        - entity_id: 'device_tracker.lum_2586392f_6979_4b69_a8be_b22992d7990d_2'
          prob_given_true: 0.9
          prob_given_false: 0.1
          platform: 'state'
          to_state: 'home' 

    - platform: bloomsky
      monitored_conditions:
        - Night
        - Rain

    - platform: hydrawise
      monitored_conditions:
        - is_watering
        - status

camera:
  - platform: bloomsky
#  - platform: generic
#    still_image_url: http://192.168.5.120:1080/cgi-bin/snapshot.cgi
#    stream_source: http://xxxxxxxxxxxx192.168.5.120:554/cam/realmonitor?channel=1&subtype=00
#    name: driveway
#    username: 
#    password: 

life360:
  # Only track Members that are in these Circles.
  circles:
    include: [Household]

weather:
  - platform: darksky
    api_key: 

panel_iframe:
  backup:
    title: 'Snapshots'
    icon: mdi:cloud-upload
    url: 'http://hassrpi4.local:1627'

#recorder:
#    purge_keep_days: 2

hydrawise:
    access_token:

**Traceback (if applicable):**


**Additional information:**

Config checker log

starting version 3.2.8
[10:18:16] INFO: Don't worry, this temporary installation is not overwriting your current one.
[10:18:16] INFO: Installing Home Assistant: latest...
[10:18:16] INFO: Please be patient, this might take a few minutes...
WARNING: You are using pip version 19.2.2, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[10:19:51] INFO: Installed Home Assistant 0.101.2
[10:19:51] INFO: Making a copy of your configuration for checking...
[10:19:52] INFO: Checking your configuration against this version...
[10:21:37] ERROR: The configuration check did not pass!
[10:21:37] ERROR: See the output below for more details.
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /tmp/config
INFO:homeassistant.util.package:Attempting install of life360==4.1.1
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.22
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py", line 206, in check
    async_check_ha_config_file(hass)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/check_config.py", line 113, in async_check_ha_config_file
    component = integration.get_component()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/cloud/__init__.py", line 4, in <module>
    from hass_nabucasa import Cloud
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/__init__.py", line 11, in <module>
    from .client import CloudClient
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/client.py", line 15, in <module>
    class CloudClient:
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/client.py", line 34, in CloudClient
    def aiohttp_runner(self) -> aiohttp.web.AppRunner:
AttributeError: module 'aiohttp' has no attribute 'web'
Fatal error while loading config: module 'aiohttp' has no attribute 'web'
Failed config
  General Errors: 
    - module 'aiohttp' has no attribute 'web'

Successful config (partial)
putz612 commented 4 years ago

Looks like its related to #28426

putz612 commented 4 years ago

Just tried 0.102.0.dev20191104 and it now works. Not sure what all changed but its working for me.

franmiele commented 4 years ago

It's working for me too. Thanks for fixing it.