Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Sep 7, 2020
1 parent 87db3f8 commit 1b3868e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hatasmota/discovery.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tasmota discovery."""
import attr
import logging

import attr
import voluptuous as vol

import hatasmota.config_validation as cv
Expand Down
2 changes: 1 addition & 1 deletion hatasmota/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_state_power(status, idx):
status = json.loads(status)
except json.decoder.JSONDecodeError:
_LOGGER.info("Invalid JSON '%s'", status)
return
return None
if idx == 0 and RSLT_POWER in status:
return status[RSLT_POWER]
powerdevice = f"{RSLT_POWER}{idx+1}"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
attrs==19.3.0
voluptuous==0.11.7

0 comments on commit 1b3868e

Please sign in to comment.