Skip to content

Commit

Permalink
0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellowlol committed Dec 27, 2022
1 parent f062c81 commit ee27a37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/avfallsor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"config_flow": true,
"codeowners": ["@hellowlol"],
"requirements": ["beautifulsoup4", "html5lib"],
"version": "0.0.5"
"version": "0.0.6"
}
5 changes: 3 additions & 2 deletions custom_components/avfallsor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def parse_tomme_kalender(text):

# This is combined in the data, but its splitted in two
# sensors since it two "bins"
if gb_map[avfall_type] in ["plastic", "paper"]:
l_at = avfall_type.lower()
if "papir" in l_at or "plast" in l_at:
tomme_days["plastic"].append(dato)
tomme_days["paper"].append(dato)
else:
Expand All @@ -107,7 +108,7 @@ def parse_tomme_kalender(text):
# if i_date.weekday() == tomme_day_nr:
# tomme_days["bio"].append(i_date)
# tomme_days["rest"].append(i_date)
_LOGGER.debug("%s", pprint.pformat(tomme_days, indent=4))
#_LOGGER.debug("%s", pprint.pformat(tomme_days, indent=4))

return tomme_days

Expand Down

0 comments on commit ee27a37

Please sign in to comment.