Remove unnecessary string literal concatenations (#30360)
This commit is contained in:
parent
cac750066a
commit
e6388e186c
183 changed files with 362 additions and 393 deletions
|
@ -544,7 +544,7 @@ def socket_timeout(value: Optional[Any]) -> object:
|
|||
float_value = float(value)
|
||||
if float_value > 0.0:
|
||||
return float_value
|
||||
raise vol.Invalid("Invalid socket timeout value." " float > 0.0 required.")
|
||||
raise vol.Invalid("Invalid socket timeout value. float > 0.0 required.")
|
||||
except Exception as _:
|
||||
raise vol.Invalid("Invalid socket timeout: {err}".format(err=_))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue