mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
fix return value
This commit is contained in:
parent
bc6def277e
commit
91b611acb7
@ -81,7 +81,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
"Unable to import pyowm. "
|
"Unable to import pyowm. "
|
||||||
"Did you maybe not install the 'PyOWM' package?")
|
"Did you maybe not install the 'PyOWM' package?")
|
||||||
|
|
||||||
return None
|
return False
|
||||||
|
|
||||||
SENSOR_TYPES['temperature'][1] = hass.config.temperature_unit
|
SENSOR_TYPES['temperature'][1] = hass.config.temperature_unit
|
||||||
unit = hass.config.temperature_unit
|
unit = hass.config.temperature_unit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user