Pylint 2 fixes (#15487)
* pylint 2 inline disable syntax fixes * pylint 2 logging-not-lazy fixes * pylint 2 consider-using-in fixes * Revert pylint 2 inline disable syntax fixes addressing unused-imports Will have a go at removing more unused imports altogether first.
This commit is contained in:
parent
d2f4bce6c0
commit
e31dd4404e
33 changed files with 55 additions and 73 deletions
|
@ -452,7 +452,7 @@ def setup(hass, config):
|
|||
_man = siren.wink.device_manufacturer()
|
||||
if (service.service != SERVICE_SET_AUTO_SHUTOFF and
|
||||
service.service != SERVICE_ENABLE_SIREN and
|
||||
(_man != 'dome' and _man != 'wink')):
|
||||
_man not in ('dome', 'wink')):
|
||||
_LOGGER.error("Service only valid for Dome or Wink sirens")
|
||||
return
|
||||
|
||||
|
@ -487,7 +487,7 @@ def setup(hass, config):
|
|||
has_dome_or_wink_siren = False
|
||||
for siren in pywink.get_sirens():
|
||||
_man = siren.device_manufacturer()
|
||||
if _man == "dome" or _man == "wink":
|
||||
if _man in ("dome", "wink"):
|
||||
has_dome_or_wink_siren = True
|
||||
_id = siren.object_id() + siren.name()
|
||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue