Constants duplicated between const.py and yeedi_auth.py #4
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/yeedi-ha-mqtt#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Several constants (app keys, secrets, API paths, app metadata) are defined in two places —
yeedi/const.pyandyeedi/yeedi_auth.py— with different names and no shared imports. Theconst.pyversions are never imported by any module, making them dead code.Duplicated values
const.pyyeedi_auth.pyAUTH_USERLOGIN_AUTH_APPKEY_YD_YEEDI_CLIENT_KEYAUTH_USERLOGIN_SECRET_YD_YEEDI_CLIENT_SECRETAUTH_GETAUTH_AUTH_APPKEY_YD_YEEDI_AUTH_CLIENT_KEYAUTH_GETAUTH_SECRET_YD_YEEDI_AUTH_CLIENT_SECRETYEEDI_APP_CODE_YEEDI_APP_CODEYEEDI_APP_VERSION_YEEDI_APP_VERSIONYEEDI_DEVICE_TYPE_YEEDI_DEVICE_TYPEYEEDI_CHANNEL_YEEDI_CHANNELPATH_USER_LOGIN, etc._USER_LOGIN_PATH_FORMAT, etc.YEEDI_ORG_WW,YEEDI_ORG_CN_ORG_WW,_ORG_CNSuggested fix
const.pyORyeedi_auth.pyto import fromconst.pyinstead of redefining