BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
535 stars 49 forks source link

10.3.0 - Unexpected debug output in logs #843

Closed thewishy closed 2 months ago

thewishy commented 2 months ago

Describe the bug

Upgraded 10.1.0 to 10.3.0 today.

Since the upgrade, the log files seem to include datapoints which are being gathered from the Octopus API. Debug logging is not enabled.

Reproduction steps

Unclear - Upgraded from 10.1.0

Expected behaviour

Debug logs only present when debug logging enabled?

Tariff Code

E-1R-INTELLI-VAR-22-10-14-J

Integration Version

10.3.0

Home Assistant Version

2024.4.3

Fresh Install?

After upgrading

Home Assistant Logs

Apr 18 21:23:10 nandi hass[416880]: https://api.octopus.energy/v1/gas-meter-points/3****7/meters/G4P*****/consumption?period_from=2024-04-16T23:00:00Z&period_to=2024-04-17T23:00:00Z Apr 18 21:23:10 nandi hass[416880]: https://api.octopus.energy/v1/gas-meter-points/3****7/meters/G4P****/consumption?page_size=1 Apr 18 21:23:10 nandi hass[416880]: 2024-04-16 23:00:00+00:00 Apr 18 21:23:10 nandi hass[416880]: 2024-04-16 23:30:00+00:00 Apr 18 21:23:10 nandi hass[416880]: 2024-04-17 00:00:00+00:00 .. Repeats with various timeblocks for hundreds of lines ...

Confirmation

pcb1962 commented 2 months ago

I found the same, lots of lines with just a timestamp repeating at 1 minute intervals. Downgraded to 10.2.1 and it's back to normal.

pdcastro commented 2 months ago

Apparently coming from utils/__init__.py line 76:

        print(rate["start”])

Already fixed in commit c028b15 in the develop branch, but not yet released.

BottlecapDave commented 2 months ago

Hello and sorry about this. I've released v10.3.1 which should remove these statements