Skip to content

Commit ace4e1c

Browse files
authored
sentry (#24)
1 parent 610f057 commit ace4e1c

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

core/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@
77
from pylitterbot import FeederRobot, LitterRobot4
88
from pylitterbot.account import Account
99
from roborock.web_api import RoborockApiClient, UserWebApiClient
10+
import sentry_sdk
1011

1112
if TYPE_CHECKING:
1213
from roborock import HomeDataDevice, HomeDataScene
1314

15+
SENTRY_DSN = os.getenv("SENTRY_DSN", "")
16+
17+
sentry_sdk.init(
18+
dsn=SENTRY_DSN,
19+
send_default_pii=True,
20+
)
21+
22+
1423
WHISKER_USERNAME = os.getenv("WHISKER_USERNAME", "")
1524
WHISKER_PASSWORD = os.getenv("WHISKER_PASSWORD", "")
1625
ROBOROCK_USERNAME = os.getenv("ROBOROCK_USERNAME", "")

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
[tasks.start]
2929
depends = ["deps"]
30-
run = "infisical run -- uv run core/main.py"
30+
run = "infisical run -- uv run python -m core.main"
3131

3232
[tasks.format]
3333
run = "dprint fmt"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
dependencies = [
88
"pylitterbot==2024.2.7",
99
"python-roborock==3.7.0",
10+
"sentry-sdk==2.43.0",
1011
"structlog==25.5.0",
1112
]
1213

uv.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)