Coder Social home page Coder Social logo

custom-components / breaking_changes Goto Github PK

View Code? Open in Web Editor NEW
81.0 9.0 13.0 342 KB

Component to show potential breaking_changes in the current published version based on your loaded components

License: MIT License

Python 100.00%
breaking-changes homeassistant home-assistant custom-component python

breaking_changes's People

Contributors

cribbstechnologies avatar daniele-athome avatar k1rd3rf avatar knapoc avatar ludeeus avatar maheus avatar mgiako avatar raman325 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

breaking_changes's Issues

[custom_components.breaking_changes] Could not update data - string indices must be integers

installed via HACS

Any idea?
2019-11-01 17:34:20 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - string indices must be integers
2019-11-01 17:35:24 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - string indices must be integers
2019-11-01 17:36:28 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - string indices must be integers
2019-11-01 17:37:34 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - string indices must be integers

Error when running "Check Home Assistant Configuration"

Version of the custom_component

latest non-beta version of Breaking Changes integration, installed via HACS. Tried also to reinstall from HACS

Describe the bug

When running the "Check Home Assistant Configuration" I get an error related to Breaking changes, see below.
As soon as I remove the integration and the breaking_changes: in the configuration.yaml file, the error does not appear anymore,

Add your logs here.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
starting version 3.2.9
[15:41:07] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:41:07] INFO: Setup udev devices

[15:41:10] INFO: Don't worry, this temporary installation is not overwriting your current one.
[15:41:10] INFO: Installing Home Assistant: latest...
[15:41:10] INFO: Please be patient, this might take a few minutes...
[15:41:41] INFO: Installed Home Assistant 0.114.3
[15:41:41] INFO: Making a copy of your configuration for checking...
[15:41:58] INFO: Checking your configuration against this version...
/tmp/config/custom_components/breaking_changes/__init__.py:144: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if platform["component"] is None or platform["component"] is "None":
[15:45:06] INFO: Configuration check finished - no error found! :)
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Error - Could not update data

Version of the custom_component

image

Describe the bug

I'm getting an error in my log. (see below)
I have Sonos configured so should have at least one breaking change.
This error only seems to have appeared since yesterday when 0.93 was released

image

custom_updater configuration

custom_updater:
  track:
    - components
    - cards
    - python_scripts
  component_urls:
    - https://raw.githubusercontent.com/briis/smartweather/master/custom_updater.json
    - https://raw.githubusercontent.com/pnbruckner/homeassistant-config/master/custom_components.json
  card_urls:
    - https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
    - https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
    - https://raw.githubusercontent.com/rdehuyss/homeassistant-lovelace-google-calendar-card/master/custom_updater.json
    - https://raw.githubusercontent.com/iammexx/home-assistant-config/master/ui/darksky/version.json
    - https://raw.githubusercontent.com/MizterB/lovelace-secondaryinfo-entity-row/master/custom_cards.json
    - https://raw.githubusercontent.com/malcolmrigg/WizardClock/master/repo.json

Add configuration here

LOVELACE

      #=============
      #=== Software
      #=============
      - type: custom:vertical-stack-in-card
        cards:
          - type: custom:card-modder
            style:
              background: transparent
              border-radius: 0px
            card:
              type: glance
              title: '-- Software --'
              columns: 3
              entities:
                - entity: sensor.installed_version
                  name: Installed Version
                  icon: mdi:home-assistant
                - entity: sensor.latest_available_version
                  name: Latest Version
                  icon: mdi:home-assistant
                - entity: binary_sensor.potential_breaking_changes
                  name: Breaking Changes
      #            icon: mdi:home-assistant

          - type: custom:card-modder
            style:
              background: transparent
              border-radius: 0px
            card:
              type: entities
              entities:
                - entity: sensor.ha_uptime
                  icon: mdi:home-assistant

                - entity: sensor.tasmota_current_version
                  name: Sonoff / Tasmota Current Version
                  icon: mdi:alpha-s-box-outline

Debug log

2019-05-16 09:49:50 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)

##Add your logs here.
N/A

set scan_interval and add attributes installed version/available version

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

the sensor shows updates each minute (while the user isn't aware of a sensor: version to be configured. moreover it uses PyPi as source, which in my setting wasn't used (I use local and Hassio).

Added to that, using the breaking_changes intergration, together with the version: sensors cause unnecessary updates and while the version sensor is set to update each 5 minutes, breaking changes updates each minute. See below for the result in the log.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Would be really nice to be able to set scan_interval (twice a day would be frequent enough for my settings, others might even use less frequent, some maybe each hour...as always ymmv)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

adding the attributes 'available' and 'installed', which the breaking changes sensor must use in the first place, could allow the user not to use the version: sensor, and cut down on checks even further

Additional context
Add any other context or screenshots about the feature request here.

please see: https://community.home-assistant.io/t/version-is-sensor-pypi-shown-without-being-configured-why/124689

and the log, which loops this of course:

2019-07-03 15:37:26 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Hassio', 'beta': False, 'board': 'rpi3', 'image': 'raspberrypi3', 'hassos': '2.12', 'supervisor': '167', 'hassos-cli': '9'}
2019-07-03 15:38:21 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:38:21 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2019-07-03 15:38:21 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:38:21 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'PyPi', 'beta': False}
2019-07-03 15:39:24 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:39:24 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2019-07-03 15:39:24 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:39:24 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'PyPi', 'beta': False}
2019-07-03 15:40:29 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:40:29 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2019-07-03 15:40:29 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:40:29 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'PyPi', 'beta': False}
2019-07-03 15:41:33 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:41:33 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2019-07-03 15:41:33 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:41:33 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'PyPi', 'beta': False}
2019-07-03 15:42:35 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:42:35 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2019-07-03 15:42:36 DEBUG (MainThread) [pyhaversion] Version: 0.95.4
2019-07-03 15:42:36 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Hassio', 'beta': False, 'board': 'rpi3', 'image': 'raspberrypi3', 'hassos': '2.12', 'supervisor': '167', 'hassos-cli': '9'}

setup:

sensor:
  - platform: version
    name: HA installed version

  - platform: version
    name: HA available version
#    beta: true
    image: raspberrypi3
    source: hassio

next to integration:
breaking_changes:

thanks for considering

hachanges.halfdecent.io is down

Version of the custom_component

0.2.0

Describe the bug

https://hachanges.halfdecent.io is returning a nginx error 502 bad gateway.

custom_updater configuration

breaking_changes:

Debug log


2019-06-16 12:17:00 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)
2019-06-16 12:18:05 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)
2019-06-16 12:19:11 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)
2019-06-16 12:20:17 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)
2019-06-16 12:21:22 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)
2019-06-16 12:22:28 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - Expecting value: line 1 column 1 (char 0)


Log spammed with Could not get version data

Version of the custom_component

0.3.6

Version of Home Assistant

arch armv7l
dev false
docker true
hassio true
os_name Linux
python_version 3.7.6
timezone Europe/Brussels
version 0.103.6
virtualenv false

Describe the bug

The log is filled with numerous warnings and errors about not being able to get version information. Is this because of the patch versions?

custom_updater configuration

breaking_changes:

Debug log

2020-01-08 12:58:27 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from Hassio, 
2020-01-08 12:58:27 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from Hassio, 
2020-01-08 12:59:09 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from PyPi, 
2020-01-08 12:59:09 WARNING (MainThread) [custom_components.breaking_changes] Could not get version data.

Timeout kills Homeassistant

Version of the custom_component

0.3.2

Describe the bug

hachanges.halfdecent.io is down.
This seems to impact this component which kills my whole homeassistant. Startup when this component is added is about 20 minutes and after that homeassistant only reacts every 2 minutes to any input from the outside.
Somehow the failed update interacts with the async loop in ways it shouldn't.

custom_updater configuration

# Add configuration here

Debug log


Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with url: /97/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe9fb3440d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

Loaded integrations that are not in use should not show

Describe the bug

Loaded integrations that are not in use should not show
.

Version of the custom_component

0.0.1

breaking_changes configuration

breaking_changes:

Debug log

2019-04-09 21:09:23 DEBUG (MainThread) [custom_components.breaking_changes] Loaded platforms - ['homeassistant', 'persistent_notification', 'websocket_api', 'http', 'script', 'zone', 'group', 'history', 'recorder', 'map', 'binary_sensor', 'speedtestdotnet', 'sensor', 'mqtt', 'config', 'influxdb', 'notify', 'sun', 'mysensors', 'switch', 'cover', 'frontend', 'api', 'system_log', 'auth', 'onboarding', 'lovelace', 'hassio', 'conversation', 'shell_command', 'logbook', 'alexa', 'alert', 'automation', 'fan', 'input_boolean', 'light', 'lock', 'media_player', 'scene', 'climate', 'homekit', 'folder_watcher', 'logger', 'system_health', 'ping', 'kodi']
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] [{'pull_request': '22777', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22777', 'component': 'konnected', 'doclink': 'https://www.home-assistant.io/components/konnected', 'description': 'Fix konnected unique_id computation for switches '}, {'pull_request': '22435', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22435', 'component': 'xiaomi_aqara', 'doclink': 'https://www.home-assistant.io/components/xiaomi_aqara', 'description': 'Fix regression of the xiaomi_aqara config validation '}, {'pull_request': '22336', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22336', 'component': 'google_assistant', 'doclink': 'https://www.home-assistant.io/components/google_assistant', 'description': 'Google assistant: add blinds trait for covers '}, {'pull_request': '22038', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22038', 'component': 'zwave', 'doclink': 'https://www.home-assistant.io/components/zwave', 'description': 'Z-Wave usb_path in configuration.yaml overrides config entry usb_path '}, {'pull_request': '22152', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22152', 'component': 'ios', 'doclink': 'https://www.home-assistant.io/components/ios', 'description': 'Change ATTR_BATTERY_STATE_UNPLUGGED for ios component '}, {'pull_request': '22175', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22175', 'component': None, 'doclink': 'https://www.home-assistant.io/components/None', 'description': 'removed iliad '}, {'pull_request': '22105', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22105', 'component': 'netgear_lte', 'doclink': 'https://www.home-assistant.io/components/netgear_lte', 'description': 'Consolidate the netgear_lte configuration '}, {'pull_request': '22200', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22200', 'component': 'websocket_api', 'doclink': 'https://www.home-assistant.io/components/websocket_api', 'description': 'Fixing the api_streams sensor '}, {'pull_request': '21053', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/21053', 'component': 'gtfs', 'doclink': 'https://www.home-assistant.io/components/gtfs', 'description': 'Define GTFS sensor as a timestamp device class '}, {'pull_request': '21593', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/21593', 'component': 'discovery', 'doclink': 'https://www.home-assistant.io/components/discovery', 'description': 'Move yeelight into component '}, {'pull_request': '18543', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/18543', 'component': 'axis', 'doclink': 'https://www.home-assistant.io/components/axis', 'description': 'Axis config flow '}, {'pull_request': '21091', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/21091', 'component': 'http', 'doclink': 'https://www.home-assistant.io/components/http', 'description': 'Lower severity level of log messages from http.view '}, {'pull_request': '21820', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/21820', 'component': 'darksky', 'doclink': 'https://www.home-assistant.io/components/darksky', 'description': 'Add hourly forecasts to Dark Sky '}, {'pull_request': '22389', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/22389', 'component': 'konnected', 'doclink': 'https://www.home-assistant.io/components/konnected', 'description': 'better algorithm for computing unique_id '}, {'pull_request': '20966', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/20966', 'component': 'gtfs', 'doclink': 'https://www.home-assistant.io/components/gtfs', 'description': 'Cache GTFS metadata and expose utility attributes (breaking change) '}, {'pull_request': '21526', 'prlink': 'https://github.com/home-assistant/home-assistant/pull/21526', 'component': 'mopar', 'doclink': 'https://www.home-assistant.io/components/mopar', 'description': 'Mopar split '}]
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] konnected
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] xiaomi_aqara
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] google_assistant
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] zwave
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] ios
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] None
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] netgear_lte
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] websocket_api
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] gtfs
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] discovery
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] axis
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] http
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] darksky
2019-04-09 21:09:24 DEBUG (MainThread) [custom_components.breaking_changes] mopar

Server down https://hachanges.entrypoint.xyz

Hi All,

Seems that the server is down:

2021-01-07 11:04:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:05:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:06:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:07:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:08:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:09:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()
2021-01-07 11:10:00 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/12-1/json - ()

Unable to run after latest HA Docker update

Version of the custom_component

Latest 0.3.3 custom_components/breaking_changes
Latest HA 0.97.2
Latest Docker homeassistant/home-assistant image

Describe the bug

When starting HA, the custom component fails to start due to a missing package. I tried installing the package on the docker host, but that obviously doesn't help. Is this component not compatible with the default docker image?

custom_updater configuration

No config, just copied the latest version into config folder as before

Debug log


Unable to install package integrationhelper==0.2.1: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/integrationhelper'
Consider using the `--user` option or check the permissions.
Not initializing breaking_changes because could not install requirement integrationhelper==0.2.1

Component won't load or show breaking changes

Running core 0.106.6 in docker.

The component just stopped working recently I have not been seeing this in the logs but I noticed today when I went to upgrade core and this sensor was reporting 0 and I knew it was wrong as I had at least one breaking change in my config.

Log Details (ERROR)

Logger:ย integrationhelper.webclient
First occured:ย 12:04:51 AMย (1ย occurences)
Last logged:ย 12:04:51 AM

Timeout error fetching information from https://hachanges.halfdecent.io/107/json - ()

Can not sync with Pypi on IPv6 network

Version of the custom_component

Breaking change component installed using HACS.
Installed version: v0.4.1
Home Assistant version: 0.117.5

Describe the bug

Same as #22:
The breaking change component can not sync with Pypi on IPv6 enabled network.

Symptom is a log trace telling a timeout occurred.

Debug log

2020-11-08 17:25:25 DEBUG (MainThread) [pyhaversion] Version: 0.117.5
2020-11-08 17:25:25 DEBUG (MainThread) [pyhaversion] Version data: {'source': 'Local'}
2020-11-08 17:25:30 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from PyPi, 
2020-11-08 17:25:30 WARNING (MainThread) [custom_components.breaking_changes] Could not get version data.

hachanges.entrypoint.xyz don't resolve at DNS level

Version of the custom_component

Latest Breaking Changes 21.4.0 (HACS)

Describe the bug

Homeassistant Error log because hachanges.entrypoint.xyz don't resolve at DNS level
DNS answer for hachanges.entrypoint.xyz

Configuration

breaking_changes:
  scan_interval: 14400

Debug log

2021-11-06 13:21:48 ERROR (MainThread) [integrationhelper.webclient] Error fetching information from https://hachanges.entrypoint.xyz/v1/2021.11 - (Cannot connect to host hachanges.entrypoint.xyz:443 ssl:default [No address associated with hostname])

check_config and reboot takes a lot longer

Version of the custom_component

0.3.3

Describe the bug

I was having issues with the check_config and restarting Home Assistant taking a lot longer than usual to execute and via this issue (home-assistant/core#26023). We stated that it was a custom component causing this problem. I started tracking the culprit by commenting all my custom components, restarted HA and then everything was fast again: Great

Then I started to uncomment custom component one by one, restarting HA and trying the check_config between each move. When I did put the breaking changes component back, the problem came back right away.

For the moment, it's commented and all seems fine.

From the tests I've done, at the moment, if I add breaking_changes: to my configuration.yaml file, the check_config will take 1-2 minutes to finish without even restarting HA. I remove it from the configuration.yaml and it's back to 5-10 seconds.

This seems to have started about 2 weeks ago which fits with the 0.3.3 release.

custom_updater configuration

Installed using HACS

Debug log

Like stated in the home assistant issue, these lines show up in the log at the same time the check_config is done.

2019-08-24 16:50:23 INFO (SyncWorker_14) [homeassistant.util.package] Attempting install of integrationhelper==0.2.1
2019-08-24 16:51:05 INFO (SyncWorker_17) [homeassistant.util.package] Attempting install of integrationhelper==0.2.2

Attribute not show the changes in json format

its not show the breaking changes in json:

changes:
  - title: Automation
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/41261'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' State conditions with attribute specified: When testing against a non-string attribute value, you now need to specify the value in your configuration in the same type as it is in the attribute (instead of as a string).'
  - title: 'HomeKit Controller, Plant, SmartThings, Xiaomi'
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/40171'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' Some integrations (`homekit_controller`, `plant`, `smartthings` and `xiaomi_miio`) previously used `lux` as their unit of measurement for entities that covered illuminance. Now, these entities use `lx` as their unit of measurement to be consistent with other integrations.This could be a breaking change for using such entities in, for example, `influxdb`.'
  - title: Logbook
    integration: logbook
    prlink: 'https://github.com/home-assistant/core/pull/40070'
    doclink: 'https://www.home-assistant.io/integrations/logbook'
    description: ' Message and domain are now removed from the logbook `state_changed` events.These are now handled by the frontend as we move closer to making the logbook localized.'
  - title: TekSavvy
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/40762'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' The TekSavvy integration has been removed. The API that was used by this integration is no longer available.'
  - title: MQTT
    integration: mqtt
    prlink: 'https://github.com/home-assistant/core/pull/41361'
    doclink: 'https://www.home-assistant.io/integrations/mqtt'
    description: ' MQTT Discovery is now enabled by default.'
  - title: Templates - Auto-updating now()
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/41147'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' The `entity_id:` attribute was recently removed from template entities because the templates are now able to find all referenced entities automatically. This removal introduced a new problem where templates using the current time could no longer use `entity_id: sensor.time` to ensure periodic updates.With apologies to those who have spent the last couple of releases adding workarounds to their templates, we are now introducing an auto-refresh feature to time-based templates.It is thus no longer necessary to reference `sensor.time`, `sensor.date` or manually update template entities when `now()` or `utcnow()` is present in the template.The template will automatically be updated when:Please note, if you have a time-based template where you <em>do not</em> want it to update periodically it will now have to be reworked to not use `now()`.'
  - title: Templates - Native types (BETA)
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/41227'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' Template results can now rendered to native Python types, but only when the legacy template rendering is disabled.<strong>This feature will be opt-in for this release, the breaking changes below only apply if you explicitly enable this new feature.</strong>A template would always result in a string (text). This made it hard to use things like lists, or numbers as a result of a template. For example, returning a list of entities or a RGB/HS/XY color.This change may impact your existing templates, as templates now can return other types; For example, string, float, integer, boolean, lists or dictionaries.The following templates can be impacted by this:'
  - title: Templates - Rate limits
    integration: homeassistant
    prlink: 'https://github.com/home-assistant/core/pull/42004'
    doclink: 'https://www.home-assistant.io/integrations/homeassistant'
    description: ' Previously we implemented a rate limit of 1 update per minute for `states.DOMAIN` in templates. This has been changed to an update once every second.Templates using `states` (without a domain) still have a rate limit of 1 update per minute.'
versions:
  - 116
  - 117
friendly_name: Potential breaking changes
icon: 'mdi:package-up'
templates:
  icon_color: >-
    if (state === 'on') return 'rgba(251,214,67,1)'; return
    'rgba(71,116,157,1)';
icon_color: 'rgba(71,116,157,1)'

Could not update data - 'NoneType' object is not iterable

Version of the custom_component

Latest, 0.3.6

Describe the bug

Getting many "Could not update data - 'NoneType' object is not iterable" in the log

default installation (no additional yaml config)


Could not update data - 'NoneType' object is not iterable
8:35 AM custom_components/breaking_changes/__init__.py (ERROR) - message first occurred at February 13, 2020, 7:22 PM and shows up 69 times

Version conflicts for pyhaversion in HA 2021.4b0

Version of the custom_component

21.3.0

Describe the bug

When I run the check configuration action in the Configuration panel, I get the following error:

Platform error sensor.version - cannot import name 'HaVersion' from 'pyhaversion' (/usr/local/lib/python3.8/site-packages/pyhaversion/__init__.py)
Platform error sensor.version - cannot import name 'HaVersion' from 'pyhaversion' (/usr/local/lib/python3.8/site-packages/pyhaversion/__init__.py)

Interestingly a couple of observations:

  1. I only get the error on check configuration, no otheer errors in logs
  2. If I keep the integration installed but remove it from my config, I don't get the error, which seems kind of odd
  3. I don't see any obvious references to HaVersion in the core version integration or the breaking_changes one, so I am not clear where this error is occurring.
  4. I thought it would be as simple as updating the requirements of pyhaversion to match the core integrations, but the error still occurs

breaking_changes configuration

breaking_changes:

Debug log


Platform error sensor.version - cannot import name 'HaVersion' from 'pyhaversion' (/usr/local/lib/python3.8/site-packages/pyhaversion/__init__.py)
Platform error sensor.version - cannot import name 'HaVersion' from 'pyhaversion' (/usr/local/lib/python3.8/site-packages/pyhaversion/__init__.py)

AttributeError: 'Version' object has no attribute 'get_local_version' error in Home Assistant 0.96

Version of the custom_component

0.2.0

Describe the bug

When using this component in Home Assistant 0.96 there is an "AttributeError: 'Version' object has no attribute 'get_local_version'" error in the log (full log below). The sensor still shows in Home Assistant, but I don't know if it is actually working.

custom_updater configuration

# Add configuration here
breaking_changes:

Debug log

2019-07-18 18:46:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/breaking_changes/__init__.py", line 77, in loaded_platforms
    hass, no_throttle=True
  File "/home/homeassistant/.homeassistant/custom_components/breaking_changes/__init__.py", line 95, in update_data
    await haversion.get_local_version()
AttributeError: 'Version' object has no attribute 'get_local_version'

AttributeError: 'NoneType' object has no attribute 'split'

Version of the custom_component

0.3.3

Describe the bug

Logs show the stacktrace below.

custom_updater configuration

breaking_changes:

Debug log


Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 378, in async_device_update
    await self.async_update()
  File "/config/custom_components/breaking_changes/sensor.py", line 29, in async_update
    await update_data(self.hass, self.hass.data[DOMAIN_DATA]["throttle"])
  File "/config/custom_components/breaking_changes/__init__.py", line 110, in update_data
    remoteversion = pypiversion.version.split(".")[1]
AttributeError: 'NoneType' object has no attribute 'split'

Update for sensor.potential_breaking_changes fails

Version of the custom_component

0.2.0

hass.io / 0.96

Describe the bug

I have this in my log

Update for sensor.potential_breaking_changes fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 378, in async_device_update
    await self.async_update()
  File "/config/custom_components/breaking_changes/sensor.py", line 29, in async_update
    await update_data(self.hass)
  File "/config/custom_components/breaking_changes/__init__.py", line 95, in update_data
    await haversion.get_local_version()
AttributeError: 'Version' object has no attribute 'get_local_version'

and

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/breaking_changes/__init__.py", line 77, in loaded_platforms
    hass, no_throttle=True
  File "/config/custom_components/breaking_changes/__init__.py", line 95, in update_data
    await haversion.get_local_version()
AttributeError: 'Version' object has no attribute 'get_local_version'

I have the sensor, don't know if it works but the sensor shows along my entities

Incompatible with Home Assistant Core 2021.2.0

Version of the custom_component

0.4.1

Describe the bug

Running Check Config addon against 2021.2.0 shows that there is, ironically, a breaking change in Home Assistamt against this component. Looks like the pyhaversion API has changed?

custom_updater configuration

breaking_changes:

Debug log


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
starting version 3.2.9
[22:27:09] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:27:10] INFO: Setup udev devices
[22:27:57] INFO: Don't worry, this temporary installation is not overwriting your current one.
[22:27:57] INFO: Installing Home Assistant: latest...
[22:27:57] INFO: Please be patient, this might take a few minutes...
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
requests 2.25.1 requires idna<3,>=2.5, but you'll have idna 3.1 which is incompatible.
[22:34:23] INFO: Installed Home Assistant 2021.2.0
[22:34:23] INFO: Making a copy of your configuration for checking...
[22:35:15] INFO: Checking your configuration against this version...
[22:46:24] ERROR: The configuration check did not pass!
[22:46:24] ERROR: See the output below for more details.
Testing configuration at /tmp/config
INFO:custom_components.unified_remote:Remotes loaded sucessful
Failed config
  General Errors: 
    - Component error: breaking_changes - cannot import name 'LocalVersion' from 'pyhaversion' (/usr/local/lib/python3.8/site-packages/pyhaversion/__init__.py)

Successful config (partial)
[22:46:24] INFO: The full output has been written to /share/check_config.txt
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Loaded components are ignored

arch armv7l
dev false
docker true
hassio true
os_name Linux
python_version 3.7.6
version 0.103.6
virtualenv false

Version of the custom_component

3.6

Describe the bug

A clear and concise description of what the bug is.

  • all breaking changes are loaded instead of only loading the breaking changes that are based on the loaded components

custom_updater configuration

breaking_changes:

Debug log

DEBUG (MainThread) [custom_components.breaking_changes] Loaded components [all my components...]

ModuleNotFoundError: No module named 'integrationhelper'

Hi,

I have installed hassio on my Rpi3 last week end and I'm starting to get used to it.
I discovered your plugin and thought it would be a nice tool to integrate into the update process of my home assistant.

Unfortunately I can't seem to get it installed because of a dependancy error.

Version of the custom_component

Breaking_changes v0.3.6

My Hassio system informations

Hassio 0.99.3
Frontend version: 20190919.1 - latest
python_version v3.7.4
arch : armv7
dev : false
docker : true
hassio : true
os_name : Linux
virtualenv : false

Describe the bug

After following the install instructions (create folder custom_components, create folder breaking_changes, adding the 4 python files) and restarting hassio I get the error "ModuleNotFoundError: No module named 'integrationhelper'". You can find more informations in the debug log below.

Configuration

As instructed I have just added the line "breaking_changes:" in my /config/configuration.yaml

Debug log

Error loading custom_components.breaking_changes. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 346, in _load_file
    module = importlib.import_module(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 "/config/custom_components/breaking_changes/__init__.py", line 15, in <module>
    from integrationhelper import Throttle, WebClient
ModuleNotFoundError: No module named 'integrationhelper'

Timeout when contacting https://hachanges.entrypoint.xyz

Version of the custom_component

Breaking Changes: v0.4.1
Home Assistant: v0.117.6

Describe the bug

My breaking changes component is throwing this error. I am also not getting a response to the URL in the browser.

custom_updater configuration

Add configuration here

breaking_changes:

Debug log

2020-11-19 09:53:02 WARNING (MainThread) [homeassistant.components.sensor] Updating breaking_changes sensor took longer than the scheduled update interval 0:00:10
2020-11-19 09:53:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.potential_breaking_changes is taking over 10 seconds
2020-11-19 09:53:02 ERROR (MainThread) [integrationhelper.webclient] Timeout error fetching information from https://hachanges.entrypoint.xyz/117-118/json - ()

https://hachanges.halfdecent.io/102/json is down

Version of the custom_component

0.3.6

Describe the bug

https://hachanges.halfdecent.io/102/json is returning error 522.

Debug log

2019-12-24 15:12:21 ERROR (MainThread) [integrationhelper.webclient] Recieved HTTP code (522) from https://hachanges.halfdecent.io/102/json
2019-12-24 15:12:21 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - 'NoneType' object is not iterable
2019-12-24 15:13:20 ERROR (MainThread) [integrationhelper.webclient] Recieved HTTP code (522) from https://hachanges.halfdecent.io/102/json
2019-12-24 15:13:20 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - 'NoneType' object is not iterable
2019-12-24 15:14:32 ERROR (MainThread) [integrationhelper.webclient] Recieved HTTP code (522) from https://hachanges.halfdecent.io/102/json
2019-12-24 15:14:32 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - 'NoneType' object is not iterable
2019-12-24 15:15:32 ERROR (MainThread) [integrationhelper.webclient] Recieved HTTP code (522) from https://hachanges.halfdecent.io/102/json
2019-12-24 15:15:32 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - 'NoneType' object is not iterable
2019-12-24 15:16:44 ERROR (MainThread) [integrationhelper.webclient] Recieved HTTP code (522) from https://hachanges.halfdecent.io/102/json
2019-12-24 15:16:44 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - 'NoneType' object is not iterable

No 'version' key

After update to HA 2021.3.0 I get this warning:

2021-03-04 09:29:48 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'breaking_changes'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'breaking_changes'

breaking_changes on AMD PC

Version of the custom_component

0.3.6

Describe the bug

I am trying to use breaking_changes on an AMD PC, so not an RPi. I am getting this error:

2019-09-25 20:07:46 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from PyPi, 
2019-09-25 20:07:47 WARNING (MainThread) [custom_components.breaking_changes] Could not get version data.

custom_updater configuration

# Add configuration here

Debug log


2019-09-25 20:07:46 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from PyPi, 
2019-09-25 20:07:47 WARNING (MainThread) [custom_components.breaking_changes] Could not get version data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.