Skip to content

Commit

Permalink
Merge pull request #28 from marijngiesen/master
Browse files Browse the repository at this point in the history
Remove whitespace in state
  • Loading branch information
xirixiz authored Dec 10, 2019
2 parents 3b3a7f1 + ce5d7b3 commit 9cd2496
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/afvalwijzer/sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
@ Authors : Bram van Dartel
@ Date : 28/04/2019
@ Date : 10/12/2019
@ Description : Afvalwijzer Json/Scraper Sensor - It queries mijnafvalwijzer.nl or afvalstoffendienstkalender.nl.
sensor:
Expand All @@ -19,9 +19,10 @@
25-03-2019 - Remove Python 3.7.x f-strings, back to old format for beteer compatibility
26-04-2019 - Make compatible with hass 0.92
22-09-2019 - Add bs4 as a requirement in manifest.json (for hassio)
10-12-2019 - Fix whitespace bug
"""

VERSION = '3.0.10'
VERSION = '3.0.11'

import logging
from datetime import date, datetime, timedelta
Expand Down Expand Up @@ -139,7 +140,7 @@ def update(self):
for item in self.data.data:
logger.debug("Update called for item: {}".format(item))
if item['key'] == self._name:
self._state = item['value']
self._state = item['value'].strip()


class TrashCollectionSchedule(object):
Expand Down

0 comments on commit 9cd2496

Please sign in to comment.