Skip to content

Commit

Permalink
Bugfix for CirculusBerkel
Browse files Browse the repository at this point in the history
  • Loading branch information
pippyn committed Aug 26, 2021
1 parent 05d5bb4 commit b3310a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sensor.afvalbeheer": {
"version": "4.7.23",
"version": "4.7.24",
"local_location": "/custom_components/afvalbeheer/__init__.py",
"remote_location": "https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/master/custom_components/afvalbeheer/__init__.py",
"visit_repo": "https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.7.23'
__version__ = '4.7.24'
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rsa",
"pycryptodome"
],
"version": "4.7.23"
"version": "4.7.24"
}
5 changes: 4 additions & 1 deletion custom_components/afvalbeheer/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sensor component for waste pickup dates from dutch and belgium waste collectors
Original Author: Pippijn Stortelder
Current Version: 4.7.23 20210816 - Pippijn Stortelder
Current Version: 4.7.24 20210826 - Pippijn Stortelder
20210112 - Updated date format for RD4
20210114 - Fix error made in commit 9d720ec
20210120 - Enabled textile for RecycleApp
Expand All @@ -20,6 +20,7 @@
20210505 - Fixed Limburg.net mapping
20210601 - Fix for ROVA
20210816 - Changed Suez to PreZero
20210826 - Bugfix for CirculusBerkel
Example config:
Configuration.yaml:
Expand Down Expand Up @@ -621,6 +622,8 @@ def __init__(self, hass, waste_collector, postcode, street_number, suffix):
def __get_data(self):
r = requests.get(self.main_url)
cookies = r.cookies
session_cookie = ""
logged_in_cookies = ""

for item in cookies.items():
if item[0] == "CB_SESSION":
Expand Down

0 comments on commit b3310a8

Please sign in to comment.