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:
@@ -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)')
|
||||
|
Reference in New Issue
Block a user