custom-components / breaking_changes Goto Github PK
View Code? Open in Web Editor NEWComponent to show potential breaking_changes in the current published version based on your loaded components
License: MIT License
Component to show potential breaking_changes in the current published version based on your loaded components
License: MIT License
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
latest non-beta version of Breaking Changes integration, installed via HACS. Tried also to reinstall from HACS
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.
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
custom_updater
configurationcustom_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
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
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
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
0.2.0
https://hachanges.halfdecent.io is returning a nginx error 502 bad gateway.
custom_updater
configurationbreaking_changes:
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)
0.3.6
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 |
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
configurationbreaking_changes:
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.
0.3.2
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
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'))
Hello,
The website "https://hachanges.halfdecent.io/" seems to be down, causing me HassIO timeout since yesterday 8PM.
Can you please restart the server ?
I saw that in the issue :
#13
And in the issue your restarted the server :
#21
Thanks for your help.
Loaded integrations that are not in use should not show
0.0.1
breaking_changes
configurationbreaking_changes:
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
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 - ()
Latest 0.3.3 custom_components/breaking_changes
Latest HA 0.97.2
Latest Docker homeassistant/home-assistant image
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
configurationNo config, just copied the latest version into config folder as before
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
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 - ()
Breaking change component installed using HACS.
Installed version: v0.4.1
Home Assistant version: 0.117.5
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.
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.
When I look at the breaking changes sensor, it shows all manner of potential breaking changes that have nothing to do with my setup or integrations.
The API now supports a range as the version, this should be implemented to save calls done in the integration.
That should make the integration operate faster on folks running older versions of HA
If I go to https://hachanges.halfdecent.io/ the site isn't available
Also acourding to this site
Latest Breaking Changes 21.4.0 (HACS)
Homeassistant Error log because hachanges.entrypoint.xyz don't resolve at DNS level
DNS answer for hachanges.entrypoint.xyz
breaking_changes:
scan_interval: 14400
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])
0.3.3
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
configurationInstalled using HACS
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
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)'
Latest, 0.3.6
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
21.3.0
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:
HaVersion
in the core version
integration or the breaking_changes
one, so I am not clear where this error is occurring.pyhaversion
to match the core integrations, but the error still occursbreaking_changes
configurationbreaking_changes:
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)
0.2.0
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:
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'
0.3.3
Logs show the stacktrace below.
custom_updater
configurationbreaking_changes:
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'
0.2.0
hass.io / 0.96
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
The installation fail with "500 Internal Server Error"
0.4.1
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
configurationbreaking_changes:
[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.
arch | armv7l |
---|---|
dev | false |
docker | true |
hassio | true |
os_name | Linux |
python_version | 3.7.6 |
version | 0.103.6 |
virtualenv | false |
3.6
A clear and concise description of what the bug is.
custom_updater
configurationbreaking_changes:
DEBUG (MainThread) [custom_components.breaking_changes] Loaded components [all my components...]
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.
Breaking_changes v0.3.6
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
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.
As instructed I have just added the line "breaking_changes:" in my /config/configuration.yaml
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'
You probably just forgot to bump the version in the source code:
VERSION = "0.3.0"
Breaking Changes: v0.4.1
Home Assistant: v0.117.6
My breaking changes component is throwing this error. I am also not getting a response to the URL in the browser.
custom_updater
configurationbreaking_changes:
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 - ()
0.3.6
https://hachanges.halfdecent.io/102/json is returning error 522.
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
you still need to add it to your 'configuration.yaml' file.
please give please provide a example on the hacs?
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'
0.3.6
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.