Skip to content

Commit

Permalink
fixing issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffykraken committed Mar 10, 2019
1 parent 9826170 commit 978bc77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bvgsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def update(self):
def fetchDataFromURL(self):
try:
with urlopen(self.url) as response:
source = response.read()
source = response.read().decode('utf8')
self.data = json.loads(source)
if self._con_state.get(CONNECTION_STATE) is CON_STATE_OFFLINE:
_LOGGER.warning("Connection to BVG API re-established")
Expand Down

0 comments on commit 978bc77

Please sign in to comment.