1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Simplify coroutine syntax (#503)

* Simplify coroutine syntax

* More

* Lint

* Fix

* More

* Lint
This commit is contained in:
Otto Winter
2019-04-09 14:30:12 +02:00
committed by GitHub
parent e90829eef2
commit be5330b6ae
103 changed files with 351 additions and 588 deletions

View File

@@ -483,7 +483,7 @@ if IS_PY2:
def temperature(value):
try:
return _temperature_c(value)
except vol.Invalid as orig_err:
except vol.Invalid as orig_err: # noqa
pass
try:
@@ -498,7 +498,7 @@ def temperature(value):
except vol.Invalid:
pass
raise orig_err
raise orig_err # noqa
_color_temperature_mireds = float_with_unit('Color Temperature', r'(mireds|Mireds)')