mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Use _LOGGER.error instead of _LOGGER.exception
This commit is contained in:
parent
8371b08676
commit
bf2bcb6dcf
@ -35,7 +35,7 @@ def get_service(hass, config):
|
|||||||
_LOGGER.error("Please check your access token")
|
_LOGGER.error("Please check your access token")
|
||||||
return None
|
return None
|
||||||
except exceptions.ChannelNotFoundError:
|
except exceptions.ChannelNotFoundError:
|
||||||
_LOGGER.exception("Channel '%s' not found", config['channel_name'])
|
_LOGGER.error("Channel '%s' not found", config['channel_name'])
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return PushettaNotificationService(config[CONF_API_KEY],
|
return PushettaNotificationService(config[CONF_API_KEY],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user