mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
more pylinting..
This commit is contained in:
parent
8c7898ed05
commit
36f5caa214
@ -29,8 +29,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
try:
|
try:
|
||||||
away_temp = float(config.get(CONF_AWAY_TEMP, 16))
|
away_temp = float(config.get(CONF_AWAY_TEMP, 16))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
_LOGGER.error("value entered for item {} should convert to a number"
|
_LOGGER.error("value entered for item %s should convert to a number",
|
||||||
.format(CONF_AWAY_TEMP))
|
CONF_AWAY_TEMP)
|
||||||
return False
|
return False
|
||||||
if username is None or password is None:
|
if username is None or password is None:
|
||||||
_LOGGER.error("Missing required configuration items %s or %s",
|
_LOGGER.error("Missing required configuration items %s or %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user