mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Remove uncessary requirement check
HA already check the requirement before setup the platform
This commit is contained in:
parent
bcb42674fc
commit
f182f7dccd
@ -37,16 +37,6 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=600)
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
""" Get the NetAtmo sensor. """
|
||||
|
||||
try:
|
||||
import lnetatmo
|
||||
|
||||
except ImportError:
|
||||
_LOGGER.exception(
|
||||
"Unable to import lnetatmo. "
|
||||
"Did you maybe not install the package ?")
|
||||
|
||||
return False
|
||||
|
||||
SENSOR_TYPES['temperature'][1] = hass.config.temperature_unit
|
||||
unit = hass.config.temperature_unit
|
||||
authorization = lnetatmo.ClientAuth(config.get(CONF_API_KEY, None),
|
||||
|
Loading…
x
Reference in New Issue
Block a user