mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-08-20 13:17:35 +00:00
Use Sentry helper function to report warnings (#5734)
* Use Sentry helper function to report warnings Don't use Sentry directly but the existing helper function. * Add pytest that Sentry is by default off * Address ruff * Address ruff
This commit is contained in:
@ -8,7 +8,6 @@ import signal
|
||||
import warnings
|
||||
|
||||
from colorlog import ColoredFormatter
|
||||
from sentry_sdk import capture_exception
|
||||
|
||||
from .addons.manager import AddonManager
|
||||
from .api import RestAPI
|
||||
@ -46,7 +45,7 @@ from .services import ServiceManager
|
||||
from .store import StoreManager
|
||||
from .supervisor import Supervisor
|
||||
from .updater import Updater
|
||||
from .utils.sentry import init_sentry
|
||||
from .utils.sentry import capture_exception, init_sentry
|
||||
|
||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
|
Reference in New Issue
Block a user