Version is sensor PyPi shown without being configured. Why?

posted in above thread because the frequency in the log was remarkable, I now write a separate post, because even though I havent set PyPi as source for the version sensor, it still shows in the log (using logger pyhaversion: debug)

thesis my config for the sensor: version:

  - platform: version
    name: HA installed version

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

both are supposed to update each 5 minutes, but the installed sensor updates each minute, and the PyPi sensor shows also, without being configured at all:

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'}

this is the only thing in the log, and repeats nicely…

please have a look what could be the cause of this?

The custom breaking changes integration uses the same lib with a interval of 1min, are you using that?

yes! good catch…
maybe we can set the scan_interval on that one?
No use for all these sensors to check for the same info… we could probably ask the author to set some attributes in the sensor so we only need that one update…

Worth a try asking in the GitHub repo for it :smiley: not sure how, but it’s probably doable

will ask referring to this thread, and ask for:

set scan_interval
set attribute installed version
set attribute available version

so to prevent all to frequent updates, and double use of sensor: version.

thanks for the find!

filed the feature request: https://github.com/custom-components/breaking_changes/issues/7

1 Like

could this cause the regular sensor: version to show each minute also? (which it does…)
update

confirm this being caused by breaking_changes. taking out the integration makes the sensor: version behave as expected: updates each 5 minutes.
Which is still far too frequent of course, but at least that’s per design…