pax_global_header00006660000000000000000000000064146503033270014515gustar00rootroot0000000000000052 comment=9f58bf09b2f1111e1f73865d27614913dc993c20 govee-ble-0.40.0/000077500000000000000000000000001465030332700134435ustar00rootroot00000000000000govee-ble-0.40.0/.all-contributorsrc000066400000000000000000000004501465030332700172730ustar00rootroot00000000000000{ "projectName": "govee-ble", "projectOwner": "bluetooth-devices", "repoType": "github", "repoHost": "https://github.com", "files": ["README.md"], "imageSize": 80, "commit": true, "commitConvention": "angular", "contributors": [], "contributorsPerLine": 7, "skipCi": true } govee-ble-0.40.0/.editorconfig000066400000000000000000000004441465030332700161220ustar00rootroot00000000000000# http://editorconfig.org root = true [*] indent_style = space indent_size = 4 trim_trailing_whitespace = true insert_final_newline = true charset = utf-8 end_of_line = lf [*.bat] indent_style = tab end_of_line = crlf [LICENSE] insert_final_newline = false [Makefile] indent_style = tab govee-ble-0.40.0/.flake8000066400000000000000000000000561465030332700146170ustar00rootroot00000000000000[flake8] exclude = docs max-line-length = 120 govee-ble-0.40.0/.github/000077500000000000000000000000001465030332700150035ustar00rootroot00000000000000govee-ble-0.40.0/.github/FUNDING.yml000066400000000000000000000000361465030332700166170ustar00rootroot00000000000000github: ["bluetooth-devices"] govee-ble-0.40.0/.github/ISSUE_TEMPLATE/000077500000000000000000000000001465030332700171665ustar00rootroot00000000000000govee-ble-0.40.0/.github/ISSUE_TEMPLATE/1-bug_report.md000066400000000000000000000004221465030332700220140ustar00rootroot00000000000000--- name: Bug report about: Create a report to help us improve labels: bug --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: **Additional context** Add any other context about the problem here. govee-ble-0.40.0/.github/ISSUE_TEMPLATE/2-feature-request.md000066400000000000000000000006721465030332700227750ustar00rootroot00000000000000--- name: Feature request about: Suggest an idea for this project labels: enhancement --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Additional context** Add any other context or screenshots about the feature request here. govee-ble-0.40.0/.github/labels.toml000066400000000000000000000035151465030332700171460ustar00rootroot00000000000000[breaking] color = "ffcc00" name = "breaking" description = "Breaking change." [bug] color = "d73a4a" name = "bug" description = "Something isn't working" [dependencies] color = "0366d6" name = "dependencies" description = "Pull requests that update a dependency file" [github_actions] color = "000000" name = "github_actions" description = "Update of github actions" [documentation] color = "1bc4a5" name = "documentation" description = "Improvements or additions to documentation" [duplicate] color = "cfd3d7" name = "duplicate" description = "This issue or pull request already exists" [enhancement] color = "a2eeef" name = "enhancement" description = "New feature or request" ["good first issue"] color = "7057ff" name = "good first issue" description = "Good for newcomers" ["help wanted"] color = "008672" name = "help wanted" description = "Extra attention is needed" [invalid] color = "e4e669" name = "invalid" description = "This doesn't seem right" [nochangelog] color = "555555" name = "nochangelog" description = "Exclude pull requests from changelog" [question] color = "d876e3" name = "question" description = "Further information is requested" [removed] color = "e99695" name = "removed" description = "Removed piece of functionalities." [tests] color = "bfd4f2" name = "tests" description = "CI, CD and testing related changes" [wontfix] color = "ffffff" name = "wontfix" description = "This will not be worked on" [discussion] color = "c2e0c6" name = "discussion" description = "Some discussion around the project" [hacktoberfest] color = "ffa663" name = "hacktoberfest" description = "Good issues for Hacktoberfest" [answered] color = "0ee2b6" name = "answered" description = "Automatically closes as answered after a delay" [waiting] color = "5f7972" name = "waiting" description = "Automatically closes if no answer after a delay" govee-ble-0.40.0/.github/workflows/000077500000000000000000000000001465030332700170405ustar00rootroot00000000000000govee-ble-0.40.0/.github/workflows/ci.yml000066400000000000000000000037661465030332700201720ustar00rootroot00000000000000name: CI on: push: branches: - main pull_request: concurrency: group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: python-version: "3.9" - uses: pre-commit/action@v2.0.3 # Make sure commit messages follow the conventional commits convention: # https://www.conventionalcommits.org commitlint: name: Lint Commit Messages runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 test: strategy: fail-fast: false matrix: python-version: - "3.10" - "3.11" - "3.12" os: - ubuntu-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - uses: snok/install-poetry@v1 - name: Install Dependencies run: poetry install - name: Test with Pytest run: poetry run pytest --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} release: runs-on: ubuntu-latest environment: release if: github.ref == 'refs/heads/main' needs: - test - lint - commitlint steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # Run semantic release: # - Update CHANGELOG.md # - Update version in code # - Create git tag # - Create GitHub release # - Publish to PyPI - name: Python Semantic Release uses: python-semantic-release/python-semantic-release@v7.34.6 with: github_token: ${{ secrets.GITHUB_TOKEN }} pypi_token: ${{ secrets.PYPI_TOKEN }} govee-ble-0.40.0/.github/workflows/hacktoberfest.yml000066400000000000000000000005341465030332700224110ustar00rootroot00000000000000name: Hacktoberfest on: schedule: # Run every day in October - cron: "0 0 * 10 *" # Run on the 1st of November to revert - cron: "0 13 1 11 *" jobs: hacktoberfest: runs-on: ubuntu-latest steps: - uses: browniebroke/hacktoberfest-labeler-action@v2.2.0 with: github_token: ${{ secrets.GH_PAT }} govee-ble-0.40.0/.github/workflows/issue-manager.yml000066400000000000000000000013401465030332700223210ustar00rootroot00000000000000name: Issue Manager on: schedule: - cron: "0 0 * * *" issue_comment: types: - created issues: types: - labeled pull_request_target: types: - labeled workflow_dispatch: jobs: issue-manager: runs-on: ubuntu-latest steps: - uses: tiangolo/issue-manager@0.4.0 with: token: ${{ secrets.GITHUB_TOKEN }} config: > { "answered": { "message": "Assuming the original issue was solved, it will be automatically closed now." }, "waiting": { "message": "Automatically closing. To re-open, please provide the additional information requested." } } govee-ble-0.40.0/.github/workflows/labels.yml000066400000000000000000000007741465030332700210350ustar00rootroot00000000000000name: Sync Github labels on: push: branches: - main paths: - ".github/**" jobs: labels: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v3 with: python-version: 3.8 - name: Install labels run: pip install labels - name: Sync config with Github run: labels -u ${{ github.repository_owner }} -t ${{ secrets.GITHUB_TOKEN }} sync -f .github/labels.toml govee-ble-0.40.0/.gitignore000066400000000000000000000040661465030332700154410ustar00rootroot00000000000000# Created by .ignore support plugin (hsz.mobi) ### Python template # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv # For a library or package, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ govee-ble-0.40.0/.gitpod.yml000066400000000000000000000003061465030332700155310ustar00rootroot00000000000000tasks: - command: | pip install poetry PIP_USER=false poetry install - command: | pip install pre-commit pre-commit install PIP_USER=false pre-commit install-hooks govee-ble-0.40.0/.idea/000077500000000000000000000000001465030332700144235ustar00rootroot00000000000000govee-ble-0.40.0/.idea/govee-ble.iml000066400000000000000000000005151465030332700167740ustar00rootroot00000000000000 govee-ble-0.40.0/.idea/watcherTasks.xml000066400000000000000000000052531465030332700176150ustar00rootroot00000000000000 govee-ble-0.40.0/.idea/workspace.xml000066400000000000000000000027251465030332700171510ustar00rootroot00000000000000 govee-ble-0.40.0/.pre-commit-config.yaml000066400000000000000000000031351465030332700177260ustar00rootroot00000000000000# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: "CHANGELOG.md" default_stages: [commit] ci: autofix_commit_msg: "chore(pre-commit.ci): auto fixes" autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate" repos: - repo: https://github.com/commitizen-tools/commitizen rev: v3.28.0 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: debug-statements - id: check-builtin-literals - id: check-case-conflict - id: check-docstring-first - id: check-json - id: check-toml - id: check-xml - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - id: trailing-whitespace - id: debug-statements - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade rev: v3.16.0 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.5.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell rev: v2.3.0 hooks: - id: codespell - repo: https://github.com/PyCQA/flake8 rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.11.0 hooks: - id: mypy additional_dependencies: [] govee-ble-0.40.0/.readthedocs.yml000066400000000000000000000010041465030332700165240ustar00rootroot00000000000000# Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details # Required version: 2 # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/source/conf.py # Set the version of Python and other tools you might need build: os: ubuntu-20.04 tools: python: "3.9" # Optionally declare the Python requirements required to build your docs python: install: - method: pip path: . extra_requirements: - docs govee-ble-0.40.0/CHANGELOG.md000066400000000000000000000440501465030332700152570ustar00rootroot00000000000000# Changelog ## v0.40.0 (2024-07-24) ### Feature * Add support for h5127 ([#101](https://github.com/Bluetooth-Devices/govee-ble/issues/101)) ([`5e84208`](https://github.com/Bluetooth-Devices/govee-ble/commit/5e8420811b07540999bdb8580f13653f2e413a21)) ## v0.39.1 (2024-07-24) ### Fix * Vibration sensor is on only and should have been an event ([#100](https://github.com/Bluetooth-Devices/govee-ble/issues/100)) ([`142e7c5`](https://github.com/Bluetooth-Devices/govee-ble/commit/142e7c50bb6db8cdf3f9818c85645280b0bb25fc)) ## v0.39.0 (2024-07-24) ### Feature * Add support for h5124 vibration sensors ([#99](https://github.com/Bluetooth-Devices/govee-ble/issues/99)) ([`d88ffd6`](https://github.com/Bluetooth-Devices/govee-ble/commit/d88ffd62e0089b87831ed10b00782a642eca253e)) ## v0.38.0 (2024-07-17) ### Feature * Add support for binary sensors ([#97](https://github.com/Bluetooth-Devices/govee-ble/issues/97)) ([`ab22cdb`](https://github.com/Bluetooth-Devices/govee-ble/commit/ab22cdbc291ee95ad107003dad1d7ec001e1f63b)) ## v0.37.0 (2024-07-16) ### Feature * Add support for sleepy devices ([#96](https://github.com/Bluetooth-Devices/govee-ble/issues/96)) ([`bbe36fa`](https://github.com/Bluetooth-Devices/govee-ble/commit/bbe36fa862f022c5f0f47f42cbfddb3fe92f19a3)) ## v0.36.1 (2024-07-16) ### Fix * Handle model not yet set ([#95](https://github.com/Bluetooth-Devices/govee-ble/issues/95)) ([`2083a01`](https://github.com/Bluetooth-Devices/govee-ble/commit/2083a01ecb102e1c9dd2292b898c22da8695b1d3)) ## v0.36.0 (2024-07-16) ### Feature * Expose ModelInfo ([#94](https://github.com/Bluetooth-Devices/govee-ble/issues/94)) ([`9111e16`](https://github.com/Bluetooth-Devices/govee-ble/commit/9111e16a6385258dd11b9756c2ed4d2cbdd7c50a)) ## v0.35.1 (2024-07-16) ### Fix * Handle remote discovered first ([#93](https://github.com/Bluetooth-Devices/govee-ble/issues/93)) ([`ae375f6`](https://github.com/Bluetooth-Devices/govee-ble/commit/ae375f627d66fa505727f6da9388fd94b138b2be)) ## v0.35.0 (2024-07-16) ### Feature * Refactor to support get_model_info for offline devices ([#92](https://github.com/Bluetooth-Devices/govee-ble/issues/92)) ([`a12d139`](https://github.com/Bluetooth-Devices/govee-ble/commit/a12d139cd29b73bd17225958f13b534425f4f7e1)) ## v0.34.0 (2024-07-16) ### Feature * Add sensor type and button count ([#91](https://github.com/Bluetooth-Devices/govee-ble/issues/91)) ([`747dcb0`](https://github.com/Bluetooth-Devices/govee-ble/commit/747dcb091c2ff2234d2d3eccc39f551a09d5a878)) ## v0.33.1 (2024-07-16) ### Fix * Remove unused device id code ([#90](https://github.com/Bluetooth-Devices/govee-ble/issues/90)) ([`a071f2e`](https://github.com/Bluetooth-Devices/govee-ble/commit/a071f2ecfd7b14d504cfdaee46e289e530383008)) ## v0.33.0 (2024-07-16) ### Feature * Add passive support for GV5121/GV5122/GV5123/GV5125/GV5126 ([#89](https://github.com/Bluetooth-Devices/govee-ble/issues/89)) ([`83ac0d5`](https://github.com/Bluetooth-Devices/govee-ble/commit/83ac0d5950d420e35113c38a58553b413b27c1f8)) ## v0.32.0 (2024-07-15) ### Feature * Add support for GV5121/GV5122/GV5123/GV5125/GV5126 ([#88](https://github.com/Bluetooth-Devices/govee-ble/issues/88)) ([`e71ca98`](https://github.com/Bluetooth-Devices/govee-ble/commit/e71ca9897fc2de04adeb3c70a5777e52a3588c04)) ## v0.31.3 (2024-06-24) ### Fix * Fix license classifier ([#86](https://github.com/Bluetooth-Devices/govee-ble/issues/86)) ([`88408cf`](https://github.com/Bluetooth-Devices/govee-ble/commit/88408cfe3c6d075718e0fdddbf7fed38c27e59f1)) ## v0.31.2 (2024-04-25) ### Fix * Ryse smart shades where being detected as an h5106 ([#85](https://github.com/Bluetooth-Devices/govee-ble/issues/85)) ([`509977f`](https://github.com/Bluetooth-Devices/govee-ble/commit/509977f0c1e309b496ebbae2f2f930b38548f2b0)) ## v0.31.1 (2024-04-25) ### Fix * Show h5075 as h5075 instead of h5075/h5072 ([#83](https://github.com/Bluetooth-Devices/govee-ble/issues/83)) ([`8fc22f7`](https://github.com/Bluetooth-Devices/govee-ble/commit/8fc22f7e4183341e02c38667ab830c9edeb27cd3)) ## v0.31.0 (2024-01-31) ### Feature * Add support for H5108 with external probe ([#82](https://github.com/Bluetooth-Devices/govee-ble/issues/82)) ([`46bccd8`](https://github.com/Bluetooth-Devices/govee-ble/commit/46bccd8a487dc736f4e75b6b584d8610e008c306)) ## v0.30.0 (2024-01-31) ### Feature * Add support for h5100 ([#81](https://github.com/Bluetooth-Devices/govee-ble/issues/81)) ([`00d9581`](https://github.com/Bluetooth-Devices/govee-ble/commit/00d9581bfb766f9ab95d3034afc45e4f9dcaf58f)) ## v0.29.0 (2024-01-31) ### Feature * Add support for h5105 ([#80](https://github.com/Bluetooth-Devices/govee-ble/issues/80)) ([`d1ab246`](https://github.com/Bluetooth-Devices/govee-ble/commit/d1ab246b766df4775ae1c3534b52b66f8f88e39f)) ## v0.28.0 (2024-01-31) ### Feature * Add support for h5103 ([#79](https://github.com/Bluetooth-Devices/govee-ble/issues/79)) ([`0c698bb`](https://github.com/Bluetooth-Devices/govee-ble/commit/0c698bbfd3d30233c60fdec0722d41f86904c120)) ## v0.27.3 (2024-01-12) ### Fix * Ensure H5106 is not detected as a H5101 ([#77](https://github.com/Bluetooth-Devices/govee-ble/issues/77)) ([`0f847ea`](https://github.com/Bluetooth-Devices/govee-ble/commit/0f847ea83473d5c385664e62ebd4771aa4a8ba82)) ## v0.27.2 (2024-01-11) ### Fix * Ensure H5106 has a name in passive mode ([#76](https://github.com/Bluetooth-Devices/govee-ble/issues/76)) ([`491977e`](https://github.com/Bluetooth-Devices/govee-ble/commit/491977e12363f25fd543e4663e419c9e0c891bcb)) ## v0.27.1 (2024-01-11) ### Fix * Update sensor state data to fix pm25 in library ([#75](https://github.com/Bluetooth-Devices/govee-ble/issues/75)) ([`425d322`](https://github.com/Bluetooth-Devices/govee-ble/commit/425d32230af45990bb5383ee64c8d03a815d64d6)) ## v0.27.0 (2024-01-11) ### Feature * Add support for H5106 ([#74](https://github.com/Bluetooth-Devices/govee-ble/issues/74)) ([`1466f9d`](https://github.com/Bluetooth-Devices/govee-ble/commit/1466f9d680d6bca900677eda9fcef2c02150c374)) ## v0.26.0 (2024-01-10) ### Feature * Add support for 5104 and 5174 ([#73](https://github.com/Bluetooth-Devices/govee-ble/issues/73)) ([`ce7e266`](https://github.com/Bluetooth-Devices/govee-ble/commit/ce7e266e27afddc46e607ce8cd08f2a941749f69)) ## v0.25.0 (2024-01-10) ### Feature * Add support for H5108 ([#72](https://github.com/Bluetooth-Devices/govee-ble/issues/72)) ([`0f52384`](https://github.com/Bluetooth-Devices/govee-ble/commit/0f5238472177402361f3d1a39861c2a9db29307d)) ## v0.24.0 (2023-08-11) ### Feature * Add support for govee h5055 ([#66](https://github.com/Bluetooth-Devices/govee-ble/issues/66)) ([`badd966`](https://github.com/Bluetooth-Devices/govee-ble/commit/badd966b529225f7ce55e97362e0b3c15be5191a)) ## v0.23.0 (2023-02-10) ### Feature * Add low temperature alarm to h5198 ([#61](https://github.com/Bluetooth-Devices/govee-ble/issues/61)) ([`d2b8e0f`](https://github.com/Bluetooth-Devices/govee-ble/commit/d2b8e0f5ddc0faa1bd2699439605601c0ca58f08)) ### Fix * Update isort to fix ci ([#62](https://github.com/Bluetooth-Devices/govee-ble/issues/62)) ([`9147504`](https://github.com/Bluetooth-Devices/govee-ble/commit/914750424c33fcaa1268d7d36dac1cccd7441ae6)) ## v0.22.0 (2023-01-27) ### Feature * Add govee h5198 ([#60](https://github.com/Bluetooth-Devices/govee-ble/issues/60)) ([`821a55d`](https://github.com/Bluetooth-Devices/govee-ble/commit/821a55d1162b9d87e2a7745e9e015b925f7bf816)) ## v0.21.1 (2023-01-12) ### Fix * Decrease minimum temperature to -30C ([#57](https://github.com/Bluetooth-Devices/govee-ble/issues/57)) ([`c41c9b5`](https://github.com/Bluetooth-Devices/govee-ble/commit/c41c9b5858a469e07cbb6b6666f2bdd4f5eee2c8)) ## v0.21.0 (2022-12-27) ### Feature * Implement error bit ([#55](https://github.com/Bluetooth-Devices/govee-ble/issues/55)) ([`b4b2f82`](https://github.com/Bluetooth-Devices/govee-ble/commit/b4b2f821e8d1dc6e1517ca76d29d124add369eb7)) ## v0.20.0 (2022-12-19) ### Feature * Log data as hex ([#53](https://github.com/Bluetooth-Devices/govee-ble/issues/53)) ([`d014bfc`](https://github.com/Bluetooth-Devices/govee-ble/commit/d014bfc9e1ed278c8fe2f25b469941748bac19cb)) ## v0.19.4 (2022-12-18) ### Fix * Round temp values ([#52](https://github.com/Bluetooth-Devices/govee-ble/issues/52)) ([`e7ec133`](https://github.com/Bluetooth-Devices/govee-ble/commit/e7ec133fa7a884f67b841a5f1f42c7d98946657e)) ## v0.19.3 (2022-12-15) ### Fix * Reject impossible temp values take 2 ([#50](https://github.com/Bluetooth-Devices/govee-ble/issues/50)) ([`c0a54eb`](https://github.com/Bluetooth-Devices/govee-ble/commit/c0a54eb3e00afe20bacbb930ea8ce251d760d8bc)) ## v0.19.2 (2022-12-15) ### Fix * Reject impossible temp values ([#47](https://github.com/Bluetooth-Devices/govee-ble/issues/47)) ([`bb8b6e0`](https://github.com/Bluetooth-Devices/govee-ble/commit/bb8b6e00b8c0a2a8779806e6b25330ef50cb41f8)) ## v0.19.1 (2022-09-30) ### Fix * Handle another H5181 ([#45](https://github.com/Bluetooth-Devices/govee-ble/issues/45)) ([`af2da30`](https://github.com/Bluetooth-Devices/govee-ble/commit/af2da30574db19674ec5e76bfaa5c84adcbbe9f0)) ## v0.19.0 (2022-09-24) ### Feature * Add support for yet another H5183 variant ([#44](https://github.com/Bluetooth-Devices/govee-ble/issues/44)) ([`d699552`](https://github.com/Bluetooth-Devices/govee-ble/commit/d699552bef2c3be13b34899f34e355a54914ffdb)) ## v0.18.0 (2022-09-24) ### Feature * Add support for another H5181 variant ([#43](https://github.com/Bluetooth-Devices/govee-ble/issues/43)) ([`7738d25`](https://github.com/Bluetooth-Devices/govee-ble/commit/7738d25fe6737a2c41d4d1f7af6e3fa41861ba0e)) ## v0.17.3 (2022-09-13) ### Fix * Publish ([#41](https://github.com/Bluetooth-Devices/govee-ble/issues/41)) ([`40ce706`](https://github.com/Bluetooth-Devices/govee-ble/commit/40ce70653f9cd52eb584253f6893d0f20677d2c7)) ## v0.17.2 (2022-09-05) ### Fix * Names are now human readable ([#39](https://github.com/Bluetooth-Devices/govee-ble/issues/39)) ([`fefc6b4`](https://github.com/Bluetooth-Devices/govee-ble/commit/fefc6b405e62a063234d12c8d812f9581b24369c)) ## v0.17.1 (2022-08-31) ### Fix * Model H5181 var fixes ([#38](https://github.com/Bluetooth-Devices/govee-ble/issues/38)) ([`42012bc`](https://github.com/Bluetooth-Devices/govee-ble/commit/42012bc8be9028c62054a7b143ea990ffeb67deb)) ## v0.17.0 (2022-08-30) ### Feature * Add support for additional H5185 firmware ([#37](https://github.com/Bluetooth-Devices/govee-ble/issues/37)) ([`0a5dfa5`](https://github.com/Bluetooth-Devices/govee-ble/commit/0a5dfa5e4e95d79f3f9a5e076355963ba75d34be)) ## v0.16.1 (2022-08-25) ### Fix * Use bluetooth-data-tools short_address ([#36](https://github.com/Bluetooth-Devices/govee-ble/issues/36)) ([`e137d93`](https://github.com/Bluetooth-Devices/govee-ble/commit/e137d930d7605a41f7112fd342cfc4bd269dc7da)) ## v0.16.0 (2022-08-16) ### Feature * Add support for H5071 ([#34](https://github.com/Bluetooth-Devices/govee-ble/issues/34)) ([`cf7e809`](https://github.com/Bluetooth-Devices/govee-ble/commit/cf7e8095c3f15a5d2ccde2cd14cf294edb4ba379)) ## v0.15.0 (2022-08-16) ### Feature * Implement rounding ([#33](https://github.com/Bluetooth-Devices/govee-ble/issues/33)) ([`eeed1aa`](https://github.com/Bluetooth-Devices/govee-ble/commit/eeed1aa231be0df9f3193511124ca2dfeeeaee51)) ## v0.14.1 (2022-08-11) ### Fix * Older 5181 firmwares ([#31](https://github.com/Bluetooth-Devices/govee-ble/issues/31)) ([`61eac60`](https://github.com/Bluetooth-Devices/govee-ble/commit/61eac6038177b58c07a80882d3cebe9debc25430)) ## v0.14.0 (2022-08-08) ### Feature * Add support for the h5052 ([#30](https://github.com/Bluetooth-Devices/govee-ble/issues/30)) ([`625594c`](https://github.com/Bluetooth-Devices/govee-ble/commit/625594c16ad67801cf2a57fa2534900e6ef28310)) ## v0.13.0 (2022-08-08) ### Feature * Add support for the 5184 devices ([#29](https://github.com/Bluetooth-Devices/govee-ble/issues/29)) ([`d9d6d6a`](https://github.com/Bluetooth-Devices/govee-ble/commit/d9d6d6a84e7b7647c829be8471915e15fa61ca0d)) ## v0.12.7 (2022-08-07) ### Fix * Add 818 to the manufacturer_ids for the gvh5185 ([#28](https://github.com/Bluetooth-Devices/govee-ble/issues/28)) ([`f3cfb61`](https://github.com/Bluetooth-Devices/govee-ble/commit/f3cfb61c2d562b801570956901f669c27b0d77fb)) ## v0.12.6 (2022-08-02) ### Fix * The GVH5074 is little endian ([#27](https://github.com/Bluetooth-Devices/govee-ble/issues/27)) ([`28e626c`](https://github.com/Bluetooth-Devices/govee-ble/commit/28e626c2527c395c507fbe00e7f18a184a3484f0)) ## v0.12.5 (2022-07-30) ### Fix * H5179 is little endian and not big endian like the rest ([#26](https://github.com/Bluetooth-Devices/govee-ble/issues/26)) ([`24a0e92`](https://github.com/Bluetooth-Devices/govee-ble/commit/24a0e922f32ef476d51d0b13e90a737dfdc83676)) ## v0.12.4 (2022-07-29) ### Fix * Parser for h5182 had the wrong mfgr_id ([#25](https://github.com/Bluetooth-Devices/govee-ble/issues/25)) ([`57abb96`](https://github.com/Bluetooth-Devices/govee-ble/commit/57abb962b32994fe4ec8cb938ad89947838b8294)) ## v0.12.3 (2022-07-22) ### Fix * Names for bbq devices ([#24](https://github.com/Bluetooth-Devices/govee-ble/issues/24)) ([`4407ed4`](https://github.com/Bluetooth-Devices/govee-ble/commit/4407ed431f4280ca77b7a31cd4fa930f878aee77)) ## v0.12.2 (2022-07-22) ### Fix * Fixs for bbq sensors ([#23](https://github.com/Bluetooth-Devices/govee-ble/issues/23)) ([`132d04d`](https://github.com/Bluetooth-Devices/govee-ble/commit/132d04d91fc9161ff1a67a34c9b00c46afb2f708)) ## v0.12.1 (2022-07-21) ### Fix * Bump sensor-state-data to fix typing ([#22](https://github.com/Bluetooth-Devices/govee-ble/issues/22)) ([`d5cdfc5`](https://github.com/Bluetooth-Devices/govee-ble/commit/d5cdfc506abeb4c81bbb0c2d0c7515f7c81266c5)) ## v0.12.0 (2022-07-21) ### Feature * Refactor for sensor-state-data 2 ([#21](https://github.com/Bluetooth-Devices/govee-ble/issues/21)) ([`b7fb4dc`](https://github.com/Bluetooth-Devices/govee-ble/commit/b7fb4dcef279e1eeb4b53e47e8f684c3a785e3c2)) ## v0.11.0 (2022-07-20) ### Feature * Export SensorDescription and SensorValue ([#20](https://github.com/Bluetooth-Devices/govee-ble/issues/20)) ([`b61e938`](https://github.com/Bluetooth-Devices/govee-ble/commit/b61e938ce974bf892b2060bc95d6ee808191d1bf)) ## v0.10.2 (2022-07-20) ### Fix * Bump deps ([#19](https://github.com/Bluetooth-Devices/govee-ble/issues/19)) ([`5fc9ece`](https://github.com/Bluetooth-Devices/govee-ble/commit/5fc9ece3d7502bfab84f9f287912f6375549cf49)) ## v0.10.1 (2022-07-19) ### Fix * Bump libs ([#18](https://github.com/Bluetooth-Devices/govee-ble/issues/18)) ([`e818e7c`](https://github.com/Bluetooth-Devices/govee-ble/commit/e818e7c4dc797a571e1d78426f62b940ec60c585)) ## v0.10.0 (2022-07-19) ### Feature * Export all needed objects ([#17](https://github.com/Bluetooth-Devices/govee-ble/issues/17)) ([`3c5ca7b`](https://github.com/Bluetooth-Devices/govee-ble/commit/3c5ca7b42d20c36bcca650ba15b4b32280751a88)) ## v0.9.1 (2022-07-19) ### Fix * Add missing device classes to bbq probes ([#16](https://github.com/Bluetooth-Devices/govee-ble/issues/16)) ([`f2cafd7`](https://github.com/Bluetooth-Devices/govee-ble/commit/f2cafd71dba9894cb7dc9ab6706bd23b77c61366)) ## v0.9.0 (2022-07-19) ### Feature * Set manu for secondary sensor ([#15](https://github.com/Bluetooth-Devices/govee-ble/issues/15)) ([`ec54d57`](https://github.com/Bluetooth-Devices/govee-ble/commit/ec54d57f25bdff968d9430421b64a751f1b2ce13)) ## v0.8.0 (2022-07-19) ### Feature * Add set_device_manufacturer ([#14](https://github.com/Bluetooth-Devices/govee-ble/issues/14)) ([`f0203b7`](https://github.com/Bluetooth-Devices/govee-ble/commit/f0203b7c50753127f298e7d7c6977580dccb8cd4)) ## v0.7.0 (2022-07-19) ### Feature * Add support for B5178 local name variation ([#13](https://github.com/Bluetooth-Devices/govee-ble/issues/13)) ([`324b3cd`](https://github.com/Bluetooth-Devices/govee-ble/commit/324b3cd99c833496af7427333e591f23d249ec70)) ## v0.6.0 (2022-07-19) ### Feature * Do not drop mac from title ([#12](https://github.com/Bluetooth-Devices/govee-ble/issues/12)) ([`cd187ed`](https://github.com/Bluetooth-Devices/govee-ble/commit/cd187ed19b0acf5b7b0c3a91dbc0e13fb321cce5)) ## v0.5.0 (2022-07-19) ### Feature * Set title for outdoor sensors ([#11](https://github.com/Bluetooth-Devices/govee-ble/issues/11)) ([`1031c78`](https://github.com/Bluetooth-Devices/govee-ble/commit/1031c782865e9b6ec74e38df5f3b4a5345d871ce)) ## v0.4.1 (2022-07-19) ### Fix * Fix device_id for remote sensors ([#10](https://github.com/Bluetooth-Devices/govee-ble/issues/10)) ([`198caf2`](https://github.com/Bluetooth-Devices/govee-ble/commit/198caf26a535f070921ee3e24cc66070d64282d2)) ## v0.4.0 (2022-07-19) ### Feature * Improve support for remote sensors ([#9](https://github.com/Bluetooth-Devices/govee-ble/issues/9)) ([`bf6eca1`](https://github.com/Bluetooth-Devices/govee-ble/commit/bf6eca1d1f64770fd010475afaeeb642c5e175ff)) ## v0.3.0 (2022-07-19) ### Feature * Change model ([#8](https://github.com/Bluetooth-Devices/govee-ble/issues/8)) ([`9456bb3`](https://github.com/Bluetooth-Devices/govee-ble/commit/9456bb3ec459e9f2e7d7be4e1bfd670e5cb4fed6)) ## v0.2.1 (2022-07-19) ### Fix * Update sensor-state-data ([#7](https://github.com/Bluetooth-Devices/govee-ble/issues/7)) ([`02b04a9`](https://github.com/Bluetooth-Devices/govee-ble/commit/02b04a91d47337dbdd925cc2c7e037500cd934f2)) ## v0.2.0 (2022-07-19) ### Feature * Switch to using bluetooth-sensor-state-data ([#6](https://github.com/Bluetooth-Devices/govee-ble/issues/6)) ([`8ad3ec5`](https://github.com/Bluetooth-Devices/govee-ble/commit/8ad3ec5f8e7117cf1847be79641b1f706eb9478f)) ## v0.1.1 (2022-07-18) ### Fix * Fix links ([#5](https://github.com/Bluetooth-Devices/govee-ble/issues/5)) ([`455f2d2`](https://github.com/Bluetooth-Devices/govee-ble/commit/455f2d202e80c03bb0e15d1f0385316e3d9dfded)) ## v0.1.0 (2022-07-18) ### Feature * Init repo ([#2](https://github.com/Bluetooth-Devices/govee-ble/issues/2)) ([`58fe30c`](https://github.com/Bluetooth-Devices/govee-ble/commit/58fe30ca51b74e3c822bb03e3876eced657915a8)) ### Fix * Fix publish process ([#4](https://github.com/Bluetooth-Devices/govee-ble/issues/4)) ([`9c3f892`](https://github.com/Bluetooth-Devices/govee-ble/commit/9c3f89271d1226f05dbe6ec972096c2e822bd2bb)) ## v0.0.2 (2022-07-18) ### Fix * Bump python min to 3.9 ([`5913902`](https://github.com/Bluetooth-Devices/govee-ble/commit/5913902dd854a5e3fc86e290e76fcb8eef9d1804)) govee-ble-0.40.0/CONTRIBUTING.md000066400000000000000000000074221465030332700157010ustar00rootroot00000000000000# Contributing Contributions are welcome, and they are greatly appreciated! Every little helps, and credit will always be given. You can contribute in many ways: ## Types of Contributions ### Report Bugs Report bugs to [our issue page][gh-issues]. If you are reporting a bug, please include: - Your operating system name and version. - Any details about your local setup that might be helpful in troubleshooting. - Detailed steps to reproduce the bug. ### Fix Bugs Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it. ### Implement Features Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it. ### Write Documentation Govee BLE could always use more documentation, whether as part of the official Govee BLE docs, in docstrings, or even on the web in blog posts, articles, and such. ### Submit Feedback The best way to send feedback [our issue page][gh-issues] on GitHub. If you are proposing a feature: - Explain in detail how it would work. - Keep the scope as narrow as possible, to make it easier to implement. - Remember that this is a volunteer-driven project, and that contributions are welcome 😊 ## Get Started! Ready to contribute? Here's how to set yourself up for local development. 1. Fork the repo on GitHub. 2. Clone your fork locally: ```shell $ git clone git@github.com:your_name_here/govee-ble.git ``` 3. Install the project dependencies with [Poetry](https://python-poetry.org): ```shell $ poetry install ``` 4. Create a branch for local development: ```shell $ git checkout -b name-of-your-bugfix-or-feature ``` Now you can make your changes locally. 5. When you're done making changes, check that your changes pass our tests: ```shell $ poetry run pytest ``` 6. Linting is done through [pre-commit](https://pre-commit.com). Provided you have the tool installed globally, you can run them all as one-off: ```shell $ pre-commit run -a ``` Or better, install the hooks once and have them run automatically each time you commit: ```shell $ pre-commit install ``` 7. Commit your changes and push your branch to GitHub: ```shell $ git add . $ git commit -m "feat(something): your detailed description of your changes" $ git push origin name-of-your-bugfix-or-feature ``` Note: the commit message should follow [the conventional commits](https://www.conventionalcommits.org). We run [`commitlint` on CI](https://github.com/marketplace/actions/commit-linter) to validate it, and if you've installed pre-commit hooks at the previous step, the message will be checked at commit time. 8. Submit a pull request through the GitHub website or using the GitHub CLI (if you have it installed): ```shell $ gh pr create --fill ``` ## Pull Request Guidelines We like to have the pull request open as soon as possible, that's a great place to discuss any piece of work, even unfinished. You can use draft pull request if it's still a work in progress. Here are a few guidelines to follow: 1. Include tests for feature or bug fixes. 2. Update the documentation for significant features. 3. Ensure tests are passing on CI. ## Tips To run a subset of tests: ```shell $ pytest tests ``` ## Making a new release The deployment should be automated and can be triggered from the Semantic Release workflow in GitHub. The next version will be based on [the commit logs](https://python-semantic-release.readthedocs.io/en/latest/commit-log-parsing.html#commit-log-parsing). This is done by [python-semantic-release](https://python-semantic-release.readthedocs.io/en/latest/index.html) via a GitHub action. [gh-issues]: https://github.com/bluetooth-devices/govee-ble/issues govee-ble-0.40.0/LICENSE000066400000000000000000000261211465030332700144520ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2022 J. Nick Koston Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. govee-ble-0.40.0/README.md000066400000000000000000000066371465030332700147360ustar00rootroot00000000000000# Govee BLE

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

Manage Govee BLE devices ## Installation Install this via pip (or your favourite package manager): `pip install govee-ble` ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Credits This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [browniebroke/cookiecutter-pypackage](https://github.com/browniebroke/cookiecutter-pypackage) project template. govee-ble-0.40.0/commitlint.config.js000066400000000000000000000003641465030332700174270ustar00rootroot00000000000000module.exports = { extends: ["@commitlint/config-conventional"], rules: { "header-max-length": [0, "always", Infinity], "body-max-line-length": [0, "always", Infinity], "footer-max-line-length": [0, "always", Infinity], }, }; govee-ble-0.40.0/docs/000077500000000000000000000000001465030332700143735ustar00rootroot00000000000000govee-ble-0.40.0/docs/Makefile000066400000000000000000000011751465030332700160370ustar00rootroot00000000000000# Minimal makefile for Sphinx documentation # # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = source BUILDDIR = build # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) .PHONY: help Makefile # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) govee-ble-0.40.0/docs/make.bat000066400000000000000000000013741465030332700160050ustar00rootroot00000000000000@ECHO OFF pushd %~dp0 REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set SOURCEDIR=source set BUILDDIR=build if "%1" == "" goto help %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 ( echo. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx echo.installed, then set the SPHINXBUILD environment variable to point echo.to the full path of the 'sphinx-build' executable. Alternatively you echo.may add the Sphinx directory to PATH. echo. echo.If you don't have Sphinx installed, grab it from echo.http://sphinx-doc.org/ exit /b 1 ) %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% goto end :help %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% :end popd govee-ble-0.40.0/docs/source/000077500000000000000000000000001465030332700156735ustar00rootroot00000000000000govee-ble-0.40.0/docs/source/_static/000077500000000000000000000000001465030332700173215ustar00rootroot00000000000000govee-ble-0.40.0/docs/source/_static/.gitkeep000066400000000000000000000000001465030332700207400ustar00rootroot00000000000000govee-ble-0.40.0/docs/source/changelog.md000066400000000000000000000000451465030332700201430ustar00rootroot00000000000000```{include} ../../CHANGELOG.md ``` govee-ble-0.40.0/docs/source/conf.py000066400000000000000000000036431465030332700172000ustar00rootroot00000000000000# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # # import os # import sys # sys.path.insert(0, os.path.abspath('.')) from typing import Any # -- Project information ----------------------------------------------------- project = "Govee BLE" copyright = "2020, J. Nick Koston" author = "J. Nick Koston" # -- General configuration --------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ "myst_parser", ] # The suffix of source filenames. source_suffix = [".rst", ".md"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. exclude_patterns: list[Any] = [] # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # html_theme = "sphinx_rtd_theme" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] govee-ble-0.40.0/docs/source/contributing.md000066400000000000000000000000501465030332700207170ustar00rootroot00000000000000```{include} ../../CONTRIBUTING.md ``` govee-ble-0.40.0/docs/source/index.md000066400000000000000000000003511465030332700173230ustar00rootroot00000000000000# Welcome to Govee BLE documentation! ```{toctree} :caption: Installation & Usage :maxdepth: 2 installation usage ``` ```{toctree} :caption: Project Info :maxdepth: 2 changelog contributing ``` ```{include} ../../README.md ``` govee-ble-0.40.0/docs/source/installation.md000066400000000000000000000002641465030332700207200ustar00rootroot00000000000000# Installation The package is published on [PyPI](https://pypi.org/project/deezer-python/) and can be installed with `pip` (or any equivalent): ```bash pip install govee-ble ``` govee-ble-0.40.0/docs/source/usage.md000066400000000000000000000001371465030332700173220ustar00rootroot00000000000000# Usage To use this package, import it: ```python import govee_ble ``` TODO: Document usage govee-ble-0.40.0/poetry.lock000066400000000000000000002372741465030332700156560ustar00rootroot00000000000000# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "alabaster" version = "0.7.16" description = "A light, configurable Sphinx theme" optional = true python-versions = ">=3.9" files = [ {file = "alabaster-0.7.16-py3-none-any.whl", hash = "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92"}, {file = "alabaster-0.7.16.tar.gz", hash = "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65"}, ] [[package]] name = "babel" version = "2.15.0" description = "Internationalization utilities" optional = true python-versions = ">=3.8" files = [ {file = "Babel-2.15.0-py3-none-any.whl", hash = "sha256:08706bdad8d0a3413266ab61bd6c34d0c28d6e1e7badf40a2cebe67644e2e1fb"}, {file = "babel-2.15.0.tar.gz", hash = "sha256:8daf0e265d05768bc6c7a314cf1321e9a123afc328cc635c18622a2f30a04413"}, ] [package.extras] dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] [[package]] name = "bluetooth-data-tools" version = "1.19.3" description = "Tools for converting bluetooth data and packets" optional = false python-versions = "<4.0,>=3.10" files = [ {file = "bluetooth_data_tools-1.19.3-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:750a6be66b27d7cc2cdd33fdde9dafe3569b9799194c4da7886eae4924c02408"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb84cc50049f114c028311a103b98099f89460f07766371e6286cbbe7cfc7f27"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17c21859cd56b7966f1cce6d36faa287c17eaa418a45bd425139df7b7b5be129"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-manylinux_2_31_x86_64.whl", hash = "sha256:81eb5f24f624477c22c81aaed3cfa6c690fcbfe3e4f5ea3e237b36b259dd912a"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:7f85423f4f4f24b0ca9e1b61957469bf9650a50d18201885d21d031a0d5771e8"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:40084b3f8d96162366534011da24c3c69ab6101c9681fa82ffc97918103b6457"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-win32.whl", hash = "sha256:796094b0aa018f40042afef5a16cd01eb4e846bdc4117162d5bb0e75b3eadb5b"}, {file = "bluetooth_data_tools-1.19.3-cp310-cp310-win_amd64.whl", hash = "sha256:232a29e7cf52bed5c00c8173c5838926538dcf5fc54f7de84bc8002f4b7e1373"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:29631917902b2979a261a826c1c5e4068ec2d1357d47b0815a805e89043ecada"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9b6ea367e9778cc36f1d7cb6d6d48722ff9352a6165276a2f3dbbe83d40b46d2"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5060db51107d06aac505668244a823709c5499eefe872094e9ca048954b2fd20"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1cedef36c44f9a590188cf24d26c7303f37c46e862febf84a106ad771a089fc8"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:553682687da998ea47195c1a958b680bd80d3f4beab31e7b9b4553660e77a36d"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-win32.whl", hash = "sha256:cd6e9238ee668253847d7576b1eda6b073e827857d5bb88a315bfde4111ec46f"}, {file = "bluetooth_data_tools-1.19.3-cp311-cp311-win_amd64.whl", hash = "sha256:40a0bc5f4500e0b575a9d86c27b77e5ce9fb391d66c003f7ae960a519ef5dd65"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:39eac88dc047d4deaad52657aca97e1f4a8c57413c50b1dce86ebc4458bc9416"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:854cdaa0531e98baf4b6e5f34813a122791a4765f38106bdef8b39a0363196dd"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2b9e1881589c92b02746f95237666587e3c7582cc12a771591a7c8c2fedfc426"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:1b118b2a6d8cb2260cd85851149a9cac7c40148445340296e240b1487077ba2b"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:000590ef4d711fd5d9063663d4dc9c2089027bb95db894f762a4c4adde8cd92b"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-win32.whl", hash = "sha256:0785202f61b3ee9f610256678888f4f4ac4b20a2b751a1776da814e01f062b27"}, {file = "bluetooth_data_tools-1.19.3-cp312-cp312-win_amd64.whl", hash = "sha256:87baf4a65211d15e3eaccde4e866877455892e95d42f6fd12a009f7c680161e4"}, {file = "bluetooth_data_tools-1.19.3-pp310-pypy310_pp73-macosx_14_0_arm64.whl", hash = "sha256:afff0b3004e93b0dc42f89407995272e2a5ae060b297f95ff717899e5bcdb552"}, {file = "bluetooth_data_tools-1.19.3-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:440874f089e15363cc63e9f11b023c57a5176d478b44a9572e538c26c7476f7f"}, {file = "bluetooth_data_tools-1.19.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:555f1829043f40a1da7b54f8cdd7f8a7a562791119b3d49793f41acf11e4dd7d"}, {file = "bluetooth_data_tools-1.19.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:a9e9347439aa43809bff57728621c4f82e3c198a7b6abf3616a87820492d77ae"}, {file = "bluetooth_data_tools-1.19.3.tar.gz", hash = "sha256:b443eede81a30e3222c85c116279d83ea90468e8def49e1105d43b430ecffc23"}, ] [package.dependencies] cryptography = ">=41.0.3" [package.extras] docs = ["Sphinx (>=5.0,<6.0)", "myst-parser (>=0.18,<0.19)", "sphinx-rtd-theme (>=1.0,<2.0)"] [[package]] name = "bluetooth-sensor-state-data" version = "1.7.1" description = "Models for storing and converting Bluetooth Sensor State Data" optional = false python-versions = "<4.0,>=3.9" files = [ {file = "bluetooth_sensor_state_data-1.7.1-py3-none-any.whl", hash = "sha256:65df4b1cd1777a5d2aed9e3e16cf00488f62838d745ae095ebc5ce7f7d7966cd"}, {file = "bluetooth_sensor_state_data-1.7.1.tar.gz", hash = "sha256:6e89909e72b596917b859673cf37eb37500e3cfdca94f08a121fca86bb2e79a4"}, ] [package.dependencies] home-assistant-bluetooth = ">=1.3.0" sensor-state-data = ">=2.0" [package.extras] docs = ["Sphinx (>=5.0,<6.0)", "myst-parser (>=0.18,<0.19)", "sphinx-rtd-theme (>=1.0,<2.0)"] [[package]] name = "certifi" version = "2024.7.4" description = "Python package for providing Mozilla's CA Bundle." optional = true python-versions = ">=3.6" files = [ {file = "certifi-2024.7.4-py3-none-any.whl", hash = "sha256:c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90"}, {file = "certifi-2024.7.4.tar.gz", hash = "sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b"}, ] [[package]] name = "cffi" version = "1.16.0" description = "Foreign Function Interface for Python calling C code." optional = false python-versions = ">=3.8" files = [ {file = "cffi-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6b3d6606d369fc1da4fd8c357d026317fbb9c9b75d36dc16e90e84c26854b088"}, {file = "cffi-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ac0f5edd2360eea2f1daa9e26a41db02dd4b0451b48f7c318e217ee092a213e9"}, {file = "cffi-1.16.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7e61e3e4fa664a8588aa25c883eab612a188c725755afff6289454d6362b9673"}, {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a72e8961a86d19bdb45851d8f1f08b041ea37d2bd8d4fd19903bc3083d80c896"}, {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b50bf3f55561dac5438f8e70bfcdfd74543fd60df5fa5f62d94e5867deca684"}, {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7651c50c8c5ef7bdb41108b7b8c5a83013bfaa8a935590c5d74627c047a583c7"}, {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4108df7fe9b707191e55f33efbcb2d81928e10cea45527879a4749cbe472614"}, {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:32c68ef735dbe5857c810328cb2481e24722a59a2003018885514d4c09af9743"}, {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:673739cb539f8cdaa07d92d02efa93c9ccf87e345b9a0b556e3ecc666718468d"}, {file = "cffi-1.16.0-cp310-cp310-win32.whl", hash = "sha256:9f90389693731ff1f659e55c7d1640e2ec43ff725cc61b04b2f9c6d8d017df6a"}, {file = "cffi-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:e6024675e67af929088fda399b2094574609396b1decb609c55fa58b028a32a1"}, {file = "cffi-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b84834d0cf97e7d27dd5b7f3aca7b6e9263c56308ab9dc8aae9784abb774d404"}, {file = "cffi-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b8ebc27c014c59692bb2664c7d13ce7a6e9a629be20e54e7271fa696ff2b417"}, {file = "cffi-1.16.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ee07e47c12890ef248766a6e55bd38ebfb2bb8edd4142d56db91b21ea68b7627"}, {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8a9d3ebe49f084ad71f9269834ceccbf398253c9fac910c4fd7053ff1386936"}, {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e70f54f1796669ef691ca07d046cd81a29cb4deb1e5f942003f401c0c4a2695d"}, {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5bf44d66cdf9e893637896c7faa22298baebcd18d1ddb6d2626a6e39793a1d56"}, {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b78010e7b97fef4bee1e896df8a4bbb6712b7f05b7ef630f9d1da00f6444d2e"}, {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c6a164aa47843fb1b01e941d385aab7215563bb8816d80ff3a363a9f8448a8dc"}, {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e09f3ff613345df5e8c3667da1d918f9149bd623cd9070c983c013792a9a62eb"}, {file = "cffi-1.16.0-cp311-cp311-win32.whl", hash = "sha256:2c56b361916f390cd758a57f2e16233eb4f64bcbeee88a4881ea90fca14dc6ab"}, {file = "cffi-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:db8e577c19c0fda0beb7e0d4e09e0ba74b1e4c092e0e40bfa12fe05b6f6d75ba"}, {file = "cffi-1.16.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fa3a0128b152627161ce47201262d3140edb5a5c3da88d73a1b790a959126956"}, {file = "cffi-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:68e7c44931cc171c54ccb702482e9fc723192e88d25a0e133edd7aff8fcd1f6e"}, {file = "cffi-1.16.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:abd808f9c129ba2beda4cfc53bde801e5bcf9d6e0f22f095e45327c038bfe68e"}, {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88e2b3c14bdb32e440be531ade29d3c50a1a59cd4e51b1dd8b0865c54ea5d2e2"}, {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcc8eb6d5902bb1cf6dc4f187ee3ea80a1eba0a89aba40a5cb20a5087d961357"}, {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b7be2d771cdba2942e13215c4e340bfd76398e9227ad10402a8767ab1865d2e6"}, {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e715596e683d2ce000574bae5d07bd522c781a822866c20495e52520564f0969"}, {file = "cffi-1.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2d92b25dbf6cae33f65005baf472d2c245c050b1ce709cc4588cdcdd5495b520"}, {file = "cffi-1.16.0-cp312-cp312-win32.whl", hash = "sha256:b2ca4e77f9f47c55c194982e10f058db063937845bb2b7a86c84a6cfe0aefa8b"}, {file = "cffi-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:68678abf380b42ce21a5f2abde8efee05c114c2fdb2e9eef2efdb0257fba1235"}, {file = "cffi-1.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0c9ef6ff37e974b73c25eecc13952c55bceed9112be2d9d938ded8e856138bcc"}, {file = "cffi-1.16.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a09582f178759ee8128d9270cd1344154fd473bb77d94ce0aeb2a93ebf0feaf0"}, {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e760191dd42581e023a68b758769e2da259b5d52e3103c6060ddc02c9edb8d7b"}, {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:80876338e19c951fdfed6198e70bc88f1c9758b94578d5a7c4c91a87af3cf31c"}, {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6a14b17d7e17fa0d207ac08642c8820f84f25ce17a442fd15e27ea18d67c59b"}, {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6602bc8dc6f3a9e02b6c22c4fc1e47aa50f8f8e6d3f78a5e16ac33ef5fefa324"}, {file = "cffi-1.16.0-cp38-cp38-win32.whl", hash = "sha256:131fd094d1065b19540c3d72594260f118b231090295d8c34e19a7bbcf2e860a"}, {file = "cffi-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:31d13b0f99e0836b7ff893d37af07366ebc90b678b6664c955b54561fc36ef36"}, {file = "cffi-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:582215a0e9adbe0e379761260553ba11c58943e4bbe9c36430c4ca6ac74b15ed"}, {file = "cffi-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b29ebffcf550f9da55bec9e02ad430c992a87e5f512cd63388abb76f1036d8d2"}, {file = "cffi-1.16.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dc9b18bf40cc75f66f40a7379f6a9513244fe33c0e8aa72e2d56b0196a7ef872"}, {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cb4a35b3642fc5c005a6755a5d17c6c8b6bcb6981baf81cea8bfbc8903e8ba8"}, {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b86851a328eedc692acf81fb05444bdf1891747c25af7529e39ddafaf68a4f3f"}, {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c0f31130ebc2d37cdd8e44605fb5fa7ad59049298b3f745c74fa74c62fbfcfc4"}, {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f8e709127c6c77446a8c0a8c8bf3c8ee706a06cd44b1e827c3e6a2ee6b8c098"}, {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:748dcd1e3d3d7cd5443ef03ce8685043294ad6bd7c02a38d1bd367cfd968e000"}, {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8895613bcc094d4a1b2dbe179d88d7fb4a15cee43c052e8885783fac397d91fe"}, {file = "cffi-1.16.0-cp39-cp39-win32.whl", hash = "sha256:ed86a35631f7bfbb28e108dd96773b9d5a6ce4811cf6ea468bb6a359b256b1e4"}, {file = "cffi-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:3686dffb02459559c74dd3d81748269ffb0eb027c39a6fc99502de37d501faa8"}, {file = "cffi-1.16.0.tar.gz", hash = "sha256:bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0"}, ] [package.dependencies] pycparser = "*" [[package]] name = "charset-normalizer" version = "3.3.2" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = true python-versions = ">=3.7.0" files = [ {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"}, {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3"}, {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027"}, {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03"}, {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d"}, {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e"}, {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6"}, {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5"}, {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537"}, {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c"}, {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12"}, {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f"}, {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269"}, {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519"}, {file = "charset_normalizer-3.3.2-cp310-cp310-win32.whl", hash = "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73"}, {file = "charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09"}, {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"}, {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"}, {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"}, {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"}, {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"}, {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"}, {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"}, {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"}, {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"}, {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"}, {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"}, {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"}, {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"}, {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"}, {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"}, {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"}, {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"}, {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"}, {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"}, {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"}, {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"}, {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"}, {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"}, {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"}, {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"}, {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"}, {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"}, {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"}, {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"}, {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-win32.whl", hash = "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4"}, {file = "charset_normalizer-3.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99"}, {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"}, {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"}, {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"}, {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"}, {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"}, {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"}, {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"}, {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"}, {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"}, {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"}, {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"}, {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"}, {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"}, {file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"}, {file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"}, {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"}, {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"}, {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"}, {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269"}, {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c"}, {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519"}, {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796"}, {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185"}, {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c"}, {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458"}, {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2"}, {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8"}, {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561"}, {file = "charset_normalizer-3.3.2-cp39-cp39-win32.whl", hash = "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f"}, {file = "charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl", hash = "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d"}, {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, ] [[package]] name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] [[package]] name = "coverage" version = "7.6.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.8" files = [ {file = "coverage-7.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dff044f661f59dace805eedb4a7404c573b6ff0cdba4a524141bc63d7be5c7fd"}, {file = "coverage-7.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a8659fd33ee9e6ca03950cfdcdf271d645cf681609153f218826dd9805ab585c"}, {file = "coverage-7.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7792f0ab20df8071d669d929c75c97fecfa6bcab82c10ee4adb91c7a54055463"}, {file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4b3cd1ca7cd73d229487fa5caca9e4bc1f0bca96526b922d61053ea751fe791"}, {file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7e128f85c0b419907d1f38e616c4f1e9f1d1b37a7949f44df9a73d5da5cd53c"}, {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a94925102c89247530ae1dab7dc02c690942566f22e189cbd53579b0693c0783"}, {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dcd070b5b585b50e6617e8972f3fbbee786afca71b1936ac06257f7e178f00f6"}, {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d50a252b23b9b4dfeefc1f663c568a221092cbaded20a05a11665d0dbec9b8fb"}, {file = "coverage-7.6.0-cp310-cp310-win32.whl", hash = "sha256:0e7b27d04131c46e6894f23a4ae186a6a2207209a05df5b6ad4caee6d54a222c"}, {file = "coverage-7.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:54dece71673b3187c86226c3ca793c5f891f9fc3d8aa183f2e3653da18566169"}, {file = "coverage-7.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c7b525ab52ce18c57ae232ba6f7010297a87ced82a2383b1afd238849c1ff933"}, {file = "coverage-7.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bea27c4269234e06f621f3fac3925f56ff34bc14521484b8f66a580aacc2e7d"}, {file = "coverage-7.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed8d1d1821ba5fc88d4a4f45387b65de52382fa3ef1f0115a4f7a20cdfab0e94"}, {file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01c322ef2bbe15057bc4bf132b525b7e3f7206f071799eb8aa6ad1940bcf5fb1"}, {file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03cafe82c1b32b770a29fd6de923625ccac3185a54a5e66606da26d105f37dac"}, {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0d1b923fc4a40c5832be4f35a5dab0e5ff89cddf83bb4174499e02ea089daf57"}, {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4b03741e70fb811d1a9a1d75355cf391f274ed85847f4b78e35459899f57af4d"}, {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a73d18625f6a8a1cbb11eadc1d03929f9510f4131879288e3f7922097a429f63"}, {file = "coverage-7.6.0-cp311-cp311-win32.whl", hash = "sha256:65fa405b837060db569a61ec368b74688f429b32fa47a8929a7a2f9b47183713"}, {file = "coverage-7.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:6379688fb4cfa921ae349c76eb1a9ab26b65f32b03d46bb0eed841fd4cb6afb1"}, {file = "coverage-7.6.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f7db0b6ae1f96ae41afe626095149ecd1b212b424626175a6633c2999eaad45b"}, {file = "coverage-7.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bbdf9a72403110a3bdae77948b8011f644571311c2fb35ee15f0f10a8fc082e8"}, {file = "coverage-7.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc44bf0315268e253bf563f3560e6c004efe38f76db03a1558274a6e04bf5d5"}, {file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:da8549d17489cd52f85a9829d0e1d91059359b3c54a26f28bec2c5d369524807"}, {file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0086cd4fc71b7d485ac93ca4239c8f75732c2ae3ba83f6be1c9be59d9e2c6382"}, {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1fad32ee9b27350687035cb5fdf9145bc9cf0a094a9577d43e909948ebcfa27b"}, {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:044a0985a4f25b335882b0966625270a8d9db3d3409ddc49a4eb00b0ef5e8cee"}, {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:76d5f82213aa78098b9b964ea89de4617e70e0d43e97900c2778a50856dac605"}, {file = "coverage-7.6.0-cp312-cp312-win32.whl", hash = "sha256:3c59105f8d58ce500f348c5b56163a4113a440dad6daa2294b5052a10db866da"}, {file = "coverage-7.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:ca5d79cfdae420a1d52bf177de4bc2289c321d6c961ae321503b2ca59c17ae67"}, {file = "coverage-7.6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d39bd10f0ae453554798b125d2f39884290c480f56e8a02ba7a6ed552005243b"}, {file = "coverage-7.6.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:beb08e8508e53a568811016e59f3234d29c2583f6b6e28572f0954a6b4f7e03d"}, {file = "coverage-7.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2e16f4cd2bc4d88ba30ca2d3bbf2f21f00f382cf4e1ce3b1ddc96c634bc48ca"}, {file = "coverage-7.6.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6616d1c9bf1e3faea78711ee42a8b972367d82ceae233ec0ac61cc7fec09fa6b"}, {file = "coverage-7.6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad4567d6c334c46046d1c4c20024de2a1c3abc626817ae21ae3da600f5779b44"}, {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d17c6a415d68cfe1091d3296ba5749d3d8696e42c37fca5d4860c5bf7b729f03"}, {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:9146579352d7b5f6412735d0f203bbd8d00113a680b66565e205bc605ef81bc6"}, {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:cdab02a0a941af190df8782aafc591ef3ad08824f97850b015c8c6a8b3877b0b"}, {file = "coverage-7.6.0-cp38-cp38-win32.whl", hash = "sha256:df423f351b162a702c053d5dddc0fc0ef9a9e27ea3f449781ace5f906b664428"}, {file = "coverage-7.6.0-cp38-cp38-win_amd64.whl", hash = "sha256:f2501d60d7497fd55e391f423f965bbe9e650e9ffc3c627d5f0ac516026000b8"}, {file = "coverage-7.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7221f9ac9dad9492cecab6f676b3eaf9185141539d5c9689d13fd6b0d7de840c"}, {file = "coverage-7.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ddaaa91bfc4477d2871442bbf30a125e8fe6b05da8a0015507bfbf4718228ab2"}, {file = "coverage-7.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4cbe651f3904e28f3a55d6f371203049034b4ddbce65a54527a3f189ca3b390"}, {file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:831b476d79408ab6ccfadaaf199906c833f02fdb32c9ab907b1d4aa0713cfa3b"}, {file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46c3d091059ad0b9c59d1034de74a7f36dcfa7f6d3bde782c49deb42438f2450"}, {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4d5fae0a22dc86259dee66f2cc6c1d3e490c4a1214d7daa2a93d07491c5c04b6"}, {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:07ed352205574aad067482e53dd606926afebcb5590653121063fbf4e2175166"}, {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:49c76cdfa13015c4560702574bad67f0e15ca5a2872c6a125f6327ead2b731dd"}, {file = "coverage-7.6.0-cp39-cp39-win32.whl", hash = "sha256:482855914928c8175735a2a59c8dc5806cf7d8f032e4820d52e845d1f731dca2"}, {file = "coverage-7.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:543ef9179bc55edfd895154a51792b01c017c87af0ebaae092720152e19e42ca"}, {file = "coverage-7.6.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:6fe885135c8a479d3e37a7aae61cbd3a0fb2deccb4dda3c25f92a49189f766d6"}, {file = "coverage-7.6.0.tar.gz", hash = "sha256:289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"}, ] [package.dependencies] tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} [package.extras] toml = ["tomli"] [[package]] name = "cryptography" version = "42.0.8" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ {file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:81d8a521705787afe7a18d5bfb47ea9d9cc068206270aad0b96a725022e18d2e"}, {file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:961e61cefdcb06e0c6d7e3a1b22ebe8b996eb2bf50614e89384be54c48c6b63d"}, {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3ec3672626e1b9e55afd0df6d774ff0e953452886e06e0f1eb7eb0c832e8902"}, {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e599b53fd95357d92304510fb7bda8523ed1f79ca98dce2f43c115950aa78801"}, {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5226d5d21ab681f432a9c1cf8b658c0cb02533eece706b155e5fbd8a0cdd3949"}, {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6b7c4f03ce01afd3b76cf69a5455caa9cfa3de8c8f493e0d3ab7d20611c8dae9"}, {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:2346b911eb349ab547076f47f2e035fc8ff2c02380a7cbbf8d87114fa0f1c583"}, {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:ad803773e9df0b92e0a817d22fd8a3675493f690b96130a5e24f1b8fabbea9c7"}, {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2f66d9cd9147ee495a8374a45ca445819f8929a3efcd2e3df6428e46c3cbb10b"}, {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d45b940883a03e19e944456a558b67a41160e367a719833c53de6911cabba2b7"}, {file = "cryptography-42.0.8-cp37-abi3-win32.whl", hash = "sha256:a0c5b2b0585b6af82d7e385f55a8bc568abff8923af147ee3c07bd8b42cda8b2"}, {file = "cryptography-42.0.8-cp37-abi3-win_amd64.whl", hash = "sha256:57080dee41209e556a9a4ce60d229244f7a66ef52750f813bfbe18959770cfba"}, {file = "cryptography-42.0.8-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:dea567d1b0e8bc5764b9443858b673b734100c2871dc93163f58c46a97a83d28"}, {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4783183f7cb757b73b2ae9aed6599b96338eb957233c58ca8f49a49cc32fd5e"}, {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0608251135d0e03111152e41f0cc2392d1e74e35703960d4190b2e0f4ca9c70"}, {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dc0fdf6787f37b1c6b08e6dfc892d9d068b5bdb671198c72072828b80bd5fe4c"}, {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:9c0c1716c8447ee7dbf08d6db2e5c41c688544c61074b54fc4564196f55c25a7"}, {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:fff12c88a672ab9c9c1cf7b0c80e3ad9e2ebd9d828d955c126be4fd3e5578c9e"}, {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:cafb92b2bc622cd1aa6a1dce4b93307792633f4c5fe1f46c6b97cf67073ec961"}, {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:31f721658a29331f895a5a54e7e82075554ccfb8b163a18719d342f5ffe5ecb1"}, {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b297f90c5723d04bcc8265fc2a0f86d4ea2e0f7ab4b6994459548d3a6b992a14"}, {file = "cryptography-42.0.8-cp39-abi3-win32.whl", hash = "sha256:2f88d197e66c65be5e42cd72e5c18afbfae3f741742070e3019ac8f4ac57262c"}, {file = "cryptography-42.0.8-cp39-abi3-win_amd64.whl", hash = "sha256:fa76fbb7596cc5839320000cdd5d0955313696d9511debab7ee7278fc8b5c84a"}, {file = "cryptography-42.0.8-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ba4f0a211697362e89ad822e667d8d340b4d8d55fae72cdd619389fb5912eefe"}, {file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:81884c4d096c272f00aeb1f11cf62ccd39763581645b0812e99a91505fa48e0c"}, {file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c9bb2ae11bfbab395bdd072985abde58ea9860ed84e59dbc0463a5d0159f5b71"}, {file = "cryptography-42.0.8-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7016f837e15b0a1c119d27ecd89b3515f01f90a8615ed5e9427e30d9cdbfed3d"}, {file = "cryptography-42.0.8-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5a94eccb2a81a309806027e1670a358b99b8fe8bfe9f8d329f27d72c094dde8c"}, {file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dec9b018df185f08483f294cae6ccac29e7a6e0678996587363dc352dc65c842"}, {file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:343728aac38decfdeecf55ecab3264b015be68fc2816ca800db649607aeee648"}, {file = "cryptography-42.0.8-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:013629ae70b40af70c9a7a5db40abe5d9054e6f4380e50ce769947b73bf3caad"}, {file = "cryptography-42.0.8.tar.gz", hash = "sha256:8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2"}, ] [package.dependencies] cffi = {version = ">=1.12", markers = "platform_python_implementation != \"PyPy\""} [package.extras] docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.1.1)"] docstest = ["pyenchant (>=1.6.11)", "readme-renderer", "sphinxcontrib-spelling (>=4.0.1)"] nox = ["nox"] pep8test = ["check-sdist", "click", "mypy", "ruff"] sdist = ["build"] ssh = ["bcrypt (>=3.1.5)"] test = ["certifi", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] test-randomorder = ["pytest-randomly"] [[package]] name = "docutils" version = "0.18.1" description = "Docutils -- Python Documentation Utilities" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ {file = "docutils-0.18.1-py2.py3-none-any.whl", hash = "sha256:23010f129180089fbcd3bc08cfefccb3b890b0050e1ca00c867036e9d161b98c"}, {file = "docutils-0.18.1.tar.gz", hash = "sha256:679987caf361a7539d76e584cbeddc311e3aee937877c87346f31debc63e9d06"}, ] [[package]] name = "exceptiongroup" version = "1.2.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, ] [package.extras] test = ["pytest (>=6)"] [[package]] name = "home-assistant-bluetooth" version = "1.10.4" description = "Home Assistant Bluetooth Models and Helpers" optional = false python-versions = ">=3.9,<4.0" files = [ {file = "home_assistant_bluetooth-1.10.4-cp310-cp310-manylinux_2_31_x86_64.whl", hash = "sha256:7c3434bdec5dcfe733d3e7c56d4a24418fcd03718dc2e7707c9133d1e48145a8"}, {file = "home_assistant_bluetooth-1.10.4.tar.gz", hash = "sha256:21216b6be9d028bc232b9188ac4dce773798c6b4e47482cc3524bfc5f82515e3"}, ] [[package]] name = "idna" version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" optional = true python-versions = ">=3.5" files = [ {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, ] [[package]] name = "imagesize" version = "1.4.1" description = "Getting image size from png/jpeg/jpeg2000/gif file" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ {file = "imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b"}, {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"}, ] [[package]] name = "iniconfig" version = "2.0.0" description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.7" files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] [[package]] name = "jinja2" version = "3.1.4" description = "A very fast and expressive template engine." optional = true python-versions = ">=3.7" files = [ {file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"}, {file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"}, ] [package.dependencies] MarkupSafe = ">=2.0" [package.extras] i18n = ["Babel (>=2.7)"] [[package]] name = "markdown-it-py" version = "2.2.0" description = "Python port of markdown-it. Markdown parsing, done right!" optional = true python-versions = ">=3.7" files = [ {file = "markdown-it-py-2.2.0.tar.gz", hash = "sha256:7c9a5e412688bc771c67432cbfebcdd686c93ce6484913dccf06cb5a0bea35a1"}, {file = "markdown_it_py-2.2.0-py3-none-any.whl", hash = "sha256:5a35f8d1870171d9acc47b99612dc146129b631baf04970128b568f190d0cc30"}, ] [package.dependencies] mdurl = ">=0.1,<1.0" [package.extras] benchmarking = ["psutil", "pytest", "pytest-benchmark"] code-style = ["pre-commit (>=3.0,<4.0)"] compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"] linkify = ["linkify-it-py (>=1,<3)"] plugins = ["mdit-py-plugins"] profiling = ["gprof2dot"] rtd = ["attrs", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"] testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] [[package]] name = "markupsafe" version = "2.1.5" description = "Safely add untrusted strings to HTML/XML markup." optional = true python-versions = ">=3.7" files = [ {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a17a92de5231666cfbe003f0e4b9b3a7ae3afb1ec2845aadc2bacc93ff85febc"}, {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:72b6be590cc35924b02c78ef34b467da4ba07e4e0f0454a2c5907f473fc50ce5"}, {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61659ba32cf2cf1481e575d0462554625196a1f2fc06a1c777d3f48e8865d46"}, {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2174c595a0d73a3080ca3257b40096db99799265e1c27cc5a610743acd86d62f"}, {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ae2ad8ae6ebee9d2d94b17fb62763125f3f374c25618198f40cbb8b525411900"}, {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:075202fa5b72c86ad32dc7d0b56024ebdbcf2048c0ba09f1cde31bfdd57bcfff"}, {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:598e3276b64aff0e7b3451b72e94fa3c238d452e7ddcd893c3ab324717456bad"}, {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fce659a462a1be54d2ffcacea5e3ba2d74daa74f30f5f143fe0c58636e355fdd"}, {file = "MarkupSafe-2.1.5-cp310-cp310-win32.whl", hash = "sha256:d9fad5155d72433c921b782e58892377c44bd6252b5af2f67f16b194987338a4"}, {file = "MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl", hash = "sha256:bf50cd79a75d181c9181df03572cdce0fbb75cc353bc350712073108cba98de5"}, {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:629ddd2ca402ae6dbedfceeba9c46d5f7b2a61d9749597d4307f943ef198fc1f"}, {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5b7b716f97b52c5a14bffdf688f971b2d5ef4029127f1ad7a513973cfd818df2"}, {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6ec585f69cec0aa07d945b20805be741395e28ac1627333b1c5b0105962ffced"}, {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b91c037585eba9095565a3556f611e3cbfaa42ca1e865f7b8015fe5c7336d5a5"}, {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7502934a33b54030eaf1194c21c692a534196063db72176b0c4028e140f8f32c"}, {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:0e397ac966fdf721b2c528cf028494e86172b4feba51d65f81ffd65c63798f3f"}, {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c061bb86a71b42465156a3ee7bd58c8c2ceacdbeb95d05a99893e08b8467359a"}, {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3a57fdd7ce31c7ff06cdfbf31dafa96cc533c21e443d57f5b1ecc6cdc668ec7f"}, {file = "MarkupSafe-2.1.5-cp311-cp311-win32.whl", hash = "sha256:397081c1a0bfb5124355710fe79478cdbeb39626492b15d399526ae53422b906"}, {file = "MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl", hash = "sha256:2b7c57a4dfc4f16f7142221afe5ba4e093e09e728ca65c51f5620c9aaeb9a617"}, {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:8dec4936e9c3100156f8a2dc89c4b88d5c435175ff03413b443469c7c8c5f4d1"}, {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:3c6b973f22eb18a789b1460b4b91bf04ae3f0c4234a0a6aa6b0a92f6f7b951d4"}, {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac07bad82163452a6884fe8fa0963fb98c2346ba78d779ec06bd7a6262132aee"}, {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f5dfb42c4604dddc8e4305050aa6deb084540643ed5804d7455b5df8fe16f5e5"}, {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ea3d8a3d18833cf4304cd2fc9cbb1efe188ca9b5efef2bdac7adc20594a0e46b"}, {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:d050b3361367a06d752db6ead6e7edeb0009be66bc3bae0ee9d97fb326badc2a"}, {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:bec0a414d016ac1a18862a519e54b2fd0fc8bbfd6890376898a6c0891dd82e9f"}, {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:58c98fee265677f63a4385256a6d7683ab1832f3ddd1e66fe948d5880c21a169"}, {file = "MarkupSafe-2.1.5-cp312-cp312-win32.whl", hash = "sha256:8590b4ae07a35970728874632fed7bd57b26b0102df2d2b233b6d9d82f6c62ad"}, {file = "MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c8b29db45f8fe46ad280a7294f5c3ec36dbac9491f2d1c17345be8e69cc5928f"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec6a563cff360b50eed26f13adc43e61bc0c04d94b8be985e6fb24b81f6dcfdf"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a549b9c31bec33820e885335b451286e2969a2d9e24879f83fe904a5ce59d70a"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f11aa001c540f62c6166c7726f71f7573b52c68c31f014c25cc7901deea0b52"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:7b2e5a267c855eea6b4283940daa6e88a285f5f2a67f2220203786dfa59b37e9"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:2d2d793e36e230fd32babe143b04cec8a8b3eb8a3122d2aceb4a371e6b09b8df"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ce409136744f6521e39fd8e2a24c53fa18ad67aa5bc7c2cf83645cce5b5c4e50"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-win32.whl", hash = "sha256:4096e9de5c6fdf43fb4f04c26fb114f61ef0bf2e5604b6ee3019d51b69e8c371"}, {file = "MarkupSafe-2.1.5-cp37-cp37m-win_amd64.whl", hash = "sha256:4275d846e41ecefa46e2015117a9f491e57a71ddd59bbead77e904dc02b1bed2"}, {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:656f7526c69fac7f600bd1f400991cc282b417d17539a1b228617081106feb4a"}, {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:97cafb1f3cbcd3fd2b6fbfb99ae11cdb14deea0736fc2b0952ee177f2b813a46"}, {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f3fbcb7ef1f16e48246f704ab79d79da8a46891e2da03f8783a5b6fa41a9532"}, {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab"}, {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68"}, {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:5dedb4db619ba5a2787a94d877bc8ffc0566f92a01c0ef214865e54ecc9ee5e0"}, {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:30b600cf0a7ac9234b2638fbc0fb6158ba5bdcdf46aeb631ead21248b9affbc4"}, {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8dd717634f5a044f860435c1d8c16a270ddf0ef8588d4887037c5028b859b0c3"}, {file = "MarkupSafe-2.1.5-cp38-cp38-win32.whl", hash = "sha256:daa4ee5a243f0f20d528d939d06670a298dd39b1ad5f8a72a4275124a7819eff"}, {file = "MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl", hash = "sha256:619bc166c4f2de5caa5a633b8b7326fbe98e0ccbfacabd87268a2b15ff73a029"}, {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7a68b554d356a91cce1236aa7682dc01df0edba8d043fd1ce607c49dd3c1edcf"}, {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:db0b55e0f3cc0be60c1f19efdde9a637c32740486004f20d1cff53c3c0ece4d2"}, {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e53af139f8579a6d5f7b76549125f0d94d7e630761a2111bc431fd820e163b8"}, {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17b950fccb810b3293638215058e432159d2b71005c74371d784862b7e4683f3"}, {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c31f53cdae6ecfa91a77820e8b151dba54ab528ba65dfd235c80b086d68a465"}, {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bff1b4290a66b490a2f4719358c0cdcd9bafb6b8f061e45c7a2460866bf50c2e"}, {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bc1667f8b83f48511b94671e0e441401371dfd0f0a795c7daa4a3cd1dde55bea"}, {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5049256f536511ee3f7e1b3f87d1d1209d327e818e6ae1365e8653d7e3abb6a6"}, {file = "MarkupSafe-2.1.5-cp39-cp39-win32.whl", hash = "sha256:00e046b6dd71aa03a41079792f8473dc494d564611a8f89bbbd7cb93295ebdcf"}, {file = "MarkupSafe-2.1.5-cp39-cp39-win_amd64.whl", hash = "sha256:fa173ec60341d6bb97a89f5ea19c85c5643c1e7dedebc22f5181eb73573142c5"}, {file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"}, ] [[package]] name = "mdit-py-plugins" version = "0.3.5" description = "Collection of plugins for markdown-it-py" optional = true python-versions = ">=3.7" files = [ {file = "mdit-py-plugins-0.3.5.tar.gz", hash = "sha256:eee0adc7195e5827e17e02d2a258a2ba159944a0748f59c5099a4a27f78fcf6a"}, {file = "mdit_py_plugins-0.3.5-py3-none-any.whl", hash = "sha256:ca9a0714ea59a24b2b044a1831f48d817dd0c817e84339f20e7889f392d77c4e"}, ] [package.dependencies] markdown-it-py = ">=1.0.0,<3.0.0" [package.extras] code-style = ["pre-commit"] rtd = ["attrs", "myst-parser (>=0.16.1,<0.17.0)", "sphinx-book-theme (>=0.1.0,<0.2.0)"] testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] [[package]] name = "mdurl" version = "0.1.2" description = "Markdown URL utilities" optional = true python-versions = ">=3.7" files = [ {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, ] [[package]] name = "myst-parser" version = "0.18.1" description = "An extended commonmark compliant parser, with bridges to docutils & sphinx." optional = true python-versions = ">=3.7" files = [ {file = "myst-parser-0.18.1.tar.gz", hash = "sha256:79317f4bb2c13053dd6e64f9da1ba1da6cd9c40c8a430c447a7b146a594c246d"}, {file = "myst_parser-0.18.1-py3-none-any.whl", hash = "sha256:61b275b85d9f58aa327f370913ae1bec26ebad372cc99f3ab85c8ec3ee8d9fb8"}, ] [package.dependencies] docutils = ">=0.15,<0.20" jinja2 = "*" markdown-it-py = ">=1.0.0,<3.0.0" mdit-py-plugins = ">=0.3.1,<0.4.0" pyyaml = "*" sphinx = ">=4,<6" typing-extensions = "*" [package.extras] code-style = ["pre-commit (>=2.12,<3.0)"] linkify = ["linkify-it-py (>=1.0,<2.0)"] rtd = ["ipython", "sphinx-book-theme", "sphinx-design", "sphinxcontrib.mermaid (>=0.7.1,<0.8.0)", "sphinxext-opengraph (>=0.6.3,<0.7.0)", "sphinxext-rediraffe (>=0.2.7,<0.3.0)"] testing = ["beautifulsoup4", "coverage[toml]", "pytest (>=6,<7)", "pytest-cov", "pytest-param-files (>=0.3.4,<0.4.0)", "pytest-regressions", "sphinx (<5.2)", "sphinx-pytest"] [[package]] name = "packaging" version = "24.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" files = [ {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, ] [[package]] name = "pluggy" version = "1.5.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, ] [package.extras] dev = ["pre-commit", "tox"] testing = ["pytest", "pytest-benchmark"] [[package]] name = "pycparser" version = "2.22" description = "C parser in Python" optional = false python-versions = ">=3.8" files = [ {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, ] [[package]] name = "pygments" version = "2.18.0" description = "Pygments is a syntax highlighting package written in Python." optional = true python-versions = ">=3.8" files = [ {file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"}, {file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"}, ] [package.extras] windows-terminal = ["colorama (>=0.4.6)"] [[package]] name = "pytest" version = "7.4.4" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.7" files = [ {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, ] [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-cov" version = "3.0.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.6" files = [ {file = "pytest-cov-3.0.0.tar.gz", hash = "sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470"}, {file = "pytest_cov-3.0.0-py3-none-any.whl", hash = "sha256:578d5d15ac4a25e5f961c938b85a05b09fdaae9deef3bb6de9a6e766622ca7a6"}, ] [package.dependencies] coverage = {version = ">=5.2.1", extras = ["toml"]} pytest = ">=4.6" [package.extras] testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"] [[package]] name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" optional = true python-versions = ">=3.6" files = [ {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, ] [[package]] name = "requests" version = "2.32.3" description = "Python HTTP for Humans." optional = true python-versions = ">=3.8" files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, ] [package.dependencies] certifi = ">=2017.4.17" charset-normalizer = ">=2,<4" idna = ">=2.5,<4" urllib3 = ">=1.21.1,<3" [package.extras] socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "sensor-state-data" version = "2.18.1" description = "Models for storing and converting Sensor Data state" optional = false python-versions = "<4.0,>=3.9" files = [ {file = "sensor_state_data-2.18.1-py3-none-any.whl", hash = "sha256:45a223acf5d4aefde45c028fa810c7925db6448984097aa1b500fe4f206d113f"}, {file = "sensor_state_data-2.18.1.tar.gz", hash = "sha256:25f17ed98748ae006ddab82d5013cf30301daaf23526d1992f99c4dc0beb49c3"}, ] [package.extras] docs = ["Sphinx (>=5.0,<6.0)", "myst-parser (>=0.18,<0.19)", "sphinx-rtd-theme (>=1.0,<2.0)"] [[package]] name = "snowballstemmer" version = "2.2.0" description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms." optional = true python-versions = "*" files = [ {file = "snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"}, {file = "snowballstemmer-2.2.0.tar.gz", hash = "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"}, ] [[package]] name = "sphinx" version = "5.3.0" description = "Python documentation generator" optional = true python-versions = ">=3.6" files = [ {file = "Sphinx-5.3.0.tar.gz", hash = "sha256:51026de0a9ff9fc13c05d74913ad66047e104f56a129ff73e174eb5c3ee794b5"}, {file = "sphinx-5.3.0-py3-none-any.whl", hash = "sha256:060ca5c9f7ba57a08a1219e547b269fadf125ae25b06b9fa7f66768efb652d6d"}, ] [package.dependencies] alabaster = ">=0.7,<0.8" babel = ">=2.9" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} docutils = ">=0.14,<0.20" imagesize = ">=1.3" Jinja2 = ">=3.0" packaging = ">=21.0" Pygments = ">=2.12" requests = ">=2.5.0" snowballstemmer = ">=2.0" sphinxcontrib-applehelp = "*" sphinxcontrib-devhelp = "*" sphinxcontrib-htmlhelp = ">=2.0.0" sphinxcontrib-jsmath = "*" sphinxcontrib-qthelp = "*" sphinxcontrib-serializinghtml = ">=1.1.5" [package.extras] docs = ["sphinxcontrib-websupport"] lint = ["docutils-stubs", "flake8 (>=3.5.0)", "flake8-bugbear", "flake8-comprehensions", "flake8-simplify", "isort", "mypy (>=0.981)", "sphinx-lint", "types-requests", "types-typed-ast"] test = ["cython", "html5lib", "pytest (>=4.6)", "typed_ast"] [[package]] name = "sphinx-rtd-theme" version = "1.3.0" description = "Read the Docs theme for Sphinx" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ {file = "sphinx_rtd_theme-1.3.0-py2.py3-none-any.whl", hash = "sha256:46ddef89cc2416a81ecfbeaceab1881948c014b1b6e4450b815311a89fb977b0"}, {file = "sphinx_rtd_theme-1.3.0.tar.gz", hash = "sha256:590b030c7abb9cf038ec053b95e5380b5c70d61591eb0b552063fbe7c41f0931"}, ] [package.dependencies] docutils = "<0.19" sphinx = ">=1.6,<8" sphinxcontrib-jquery = ">=4,<5" [package.extras] dev = ["bump2version", "sphinxcontrib-httpdomain", "transifex-client", "wheel"] [[package]] name = "sphinxcontrib-applehelp" version = "1.0.8" description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books" optional = true python-versions = ">=3.9" files = [ {file = "sphinxcontrib_applehelp-1.0.8-py3-none-any.whl", hash = "sha256:cb61eb0ec1b61f349e5cc36b2028e9e7ca765be05e49641c97241274753067b4"}, {file = "sphinxcontrib_applehelp-1.0.8.tar.gz", hash = "sha256:c40a4f96f3776c4393d933412053962fac2b84f4c99a7982ba42e09576a70619"}, ] [package.extras] lint = ["docutils-stubs", "flake8", "mypy"] standalone = ["Sphinx (>=5)"] test = ["pytest"] [[package]] name = "sphinxcontrib-devhelp" version = "1.0.6" description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents" optional = true python-versions = ">=3.9" files = [ {file = "sphinxcontrib_devhelp-1.0.6-py3-none-any.whl", hash = "sha256:6485d09629944511c893fa11355bda18b742b83a2b181f9a009f7e500595c90f"}, {file = "sphinxcontrib_devhelp-1.0.6.tar.gz", hash = "sha256:9893fd3f90506bc4b97bdb977ceb8fbd823989f4316b28c3841ec128544372d3"}, ] [package.extras] lint = ["docutils-stubs", "flake8", "mypy"] standalone = ["Sphinx (>=5)"] test = ["pytest"] [[package]] name = "sphinxcontrib-htmlhelp" version = "2.0.5" description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files" optional = true python-versions = ">=3.9" files = [ {file = "sphinxcontrib_htmlhelp-2.0.5-py3-none-any.whl", hash = "sha256:393f04f112b4d2f53d93448d4bce35842f62b307ccdc549ec1585e950bc35e04"}, {file = "sphinxcontrib_htmlhelp-2.0.5.tar.gz", hash = "sha256:0dc87637d5de53dd5eec3a6a01753b1ccf99494bd756aafecd74b4fa9e729015"}, ] [package.extras] lint = ["docutils-stubs", "flake8", "mypy"] standalone = ["Sphinx (>=5)"] test = ["html5lib", "pytest"] [[package]] name = "sphinxcontrib-jquery" version = "4.1" description = "Extension to include jQuery on newer Sphinx releases" optional = true python-versions = ">=2.7" files = [ {file = "sphinxcontrib-jquery-4.1.tar.gz", hash = "sha256:1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a"}, {file = "sphinxcontrib_jquery-4.1-py2.py3-none-any.whl", hash = "sha256:f936030d7d0147dd026a4f2b5a57343d233f1fc7b363f68b3d4f1cb0993878ae"}, ] [package.dependencies] Sphinx = ">=1.8" [[package]] name = "sphinxcontrib-jsmath" version = "1.0.1" description = "A sphinx extension which renders display math in HTML via JavaScript" optional = true python-versions = ">=3.5" files = [ {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"}, {file = "sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178"}, ] [package.extras] test = ["flake8", "mypy", "pytest"] [[package]] name = "sphinxcontrib-qthelp" version = "1.0.7" description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents" optional = true python-versions = ">=3.9" files = [ {file = "sphinxcontrib_qthelp-1.0.7-py3-none-any.whl", hash = "sha256:e2ae3b5c492d58fcbd73281fbd27e34b8393ec34a073c792642cd8e529288182"}, {file = "sphinxcontrib_qthelp-1.0.7.tar.gz", hash = "sha256:053dedc38823a80a7209a80860b16b722e9e0209e32fea98c90e4e6624588ed6"}, ] [package.extras] lint = ["docutils-stubs", "flake8", "mypy"] standalone = ["Sphinx (>=5)"] test = ["pytest"] [[package]] name = "sphinxcontrib-serializinghtml" version = "1.1.10" description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)" optional = true python-versions = ">=3.9" files = [ {file = "sphinxcontrib_serializinghtml-1.1.10-py3-none-any.whl", hash = "sha256:326369b8df80a7d2d8d7f99aa5ac577f51ea51556ed974e7716cfd4fca3f6cb7"}, {file = "sphinxcontrib_serializinghtml-1.1.10.tar.gz", hash = "sha256:93f3f5dc458b91b192fe10c397e324f262cf163d79f3282c158e8436a2c4511f"}, ] [package.extras] lint = ["docutils-stubs", "flake8", "mypy"] standalone = ["Sphinx (>=5)"] test = ["pytest"] [[package]] name = "tomli" version = "2.0.1" description = "A lil' TOML parser" optional = false python-versions = ">=3.7" files = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] [[package]] name = "typing-extensions" version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = true python-versions = ">=3.8" files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] [[package]] name = "urllib3" version = "2.2.2" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = true python-versions = ">=3.8" files = [ {file = "urllib3-2.2.2-py3-none-any.whl", hash = "sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472"}, {file = "urllib3-2.2.2.tar.gz", hash = "sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168"}, ] [package.extras] brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] [extras] docs = ["Sphinx", "myst-parser", "sphinx-rtd-theme"] [metadata] lock-version = "2.0" python-versions = "^3.10" content-hash = "583fb360b0214ecb6d54211a7dc48d7c564947a0078b7f635862e22c867491cf" govee-ble-0.40.0/pyproject.toml000066400000000000000000000046271465030332700163700ustar00rootroot00000000000000[tool.poetry] name = "govee-ble" version = "0.40.0" description = "Manage Govee BLE devices" authors = ["J. Nick Koston "] readme = "README.md" repository = "https://github.com/bluetooth-devices/govee-ble" documentation = "https://govee-ble.readthedocs.io" classifiers = [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries", "License :: OSI Approved :: Apache Software License", ] packages = [ { include = "govee_ble", from = "src" }, ] [tool.poetry.urls] "Bug Tracker" = "https://github.com/bluetooth-devices/govee-ble/issues" "Changelog" = "https://github.com/bluetooth-devices/govee-ble/blob/main/CHANGELOG.md" [tool.poetry.dependencies] python = "^3.10" # Documentation Dependencies Sphinx = {version = "^5.0", optional = true} sphinx-rtd-theme = {version = "^1.0", optional = true} myst-parser = {version = "^0.18", optional = true} home-assistant-bluetooth = ">=1.3.0" sensor-state-data = ">=2.18.0" bluetooth-sensor-state-data = ">=1.5.0" bluetooth-data-tools = ">=0.1.2" cryptography = ">=42.0.0" [tool.poetry.extras] docs = [ "myst-parser", "sphinx", "sphinx-rtd-theme", ] [tool.poetry.dev-dependencies] pytest = "^7.0" pytest-cov = "^3.0" [tool.semantic_release] branch = "main" version_toml = "pyproject.toml:tool.poetry.version" version_variable = "src/govee_ble/__init__.py:__version__" build_command = "pip install poetry && poetry build" [tool.pytest.ini_options] addopts = "-v -Wdefault --cov=govee_ble --cov-report=term-missing:skip-covered" pythonpath = ["src"] [tool.coverage.run] branch = true [tool.coverage.report] exclude_lines = [ "pragma: no cover", "@overload", "if TYPE_CHECKING", "raise NotImplementedError", ] [tool.isort] profile = "black" known_first_party = ["govee_ble", "tests"] [tool.mypy] check_untyped_defs = true disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_defs = true mypy_path = "src/" no_implicit_optional = true show_error_codes = true warn_unreachable = true warn_unused_ignores = true exclude = [ 'docs/.*', 'setup.py', ] [[tool.mypy.overrides]] module = "tests.*" allow_untyped_defs = true [[tool.mypy.overrides]] module = "docs.*" ignore_errors = true [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" govee-ble-0.40.0/renovate.json000066400000000000000000000001011465030332700161510ustar00rootroot00000000000000{ "extends": ["github>browniebroke/renovate-configs:python"] } govee-ble-0.40.0/setup.py000066400000000000000000000003571465030332700151620ustar00rootroot00000000000000#!/usr/bin/env python # This is a shim to allow GitHub to detect the package, build is done with poetry # Taken from https://github.com/Textualize/rich import setuptools if __name__ == "__main__": setuptools.setup(name="govee-ble") govee-ble-0.40.0/src/000077500000000000000000000000001465030332700142325ustar00rootroot00000000000000govee-ble-0.40.0/src/govee_ble/000077500000000000000000000000001465030332700161615ustar00rootroot00000000000000govee-ble-0.40.0/src/govee_ble/__init__.py000066400000000000000000000017461465030332700203020ustar00rootroot00000000000000"""Parser for Govee BLE advertisements. This file is shamelessly copied from the following repository: https://github.com/Ernst79/bleparser/blob/c42ae922e1abed2720c7fac993777e1bd59c0c93/package/bleparser/govee.py MIT License applies. """ from __future__ import annotations from sensor_state_data import ( BinarySensorDeviceClass, BinarySensorValue, DeviceKey, SensorDescription, SensorDeviceClass, SensorDeviceInfo, SensorUpdate, SensorValue, Units, ) from sensor_state_data import ( DeviceClass, ) from .parser import GoveeBluetoothDeviceData, SensorType, get_model_info, ModelInfo __version__ = "0.40.0" __all__ = [ "GoveeBluetoothDeviceData", "BinarySensorDeviceClass", "SensorDeviceClass", "BinarySensorValue", "SensorType", "SensorDescription", "SensorDeviceInfo", "DeviceClass", "DeviceKey", "SensorUpdate", "SensorDeviceInfo", "SensorValue", "Units", "get_model_info", "ModelInfo", ] govee-ble-0.40.0/src/govee_ble/parser.py000066400000000000000000000670651465030332700200450ustar00rootroot00000000000000"""Parser for Govee BLE advertisements. This file is shamelessly copied from the following repository: https://github.com/Ernst79/bleparser/blob/c42ae922e1abed2720c7fac993777e1bd59c0c93/package/bleparser/govee.py MIT License applies. """ from __future__ import annotations import logging import struct from dataclasses import dataclass from enum import Enum from bluetooth_data_tools import short_address from bluetooth_sensor_state_data import BluetoothData from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from home_assistant_bluetooth import BluetoothServiceInfo from sensor_state_data import BinarySensorDeviceClass, SensorLibrary _LOGGER = logging.getLogger(__name__) PACKED_hHB_LITTLE = struct.Struct("hHB") PACKED_hh = struct.Struct(">hh") PACKED_hhhchhh_LITTLE = struct.Struct("hhbhh") PACKED_hhhhh = struct.Struct(">hhhhh") PACKED_hhhhhh = struct.Struct(">hhhhhh") ERROR = "error" MIN_TEMP = -30 MAX_TEMP = 100 NOT_GOVEE_MANUFACTURER = {76} PROBE_MAPPING_1_2 = [1, 2] PROBE_MAPPING_3_4 = [3, 4] FOUR_PROBES_MAPPING = { sensor_id: PROBE_MAPPING_1_2 for sensor_id in (0x01, 0x41, 0x81, 0xC1) } | {sensor_id: PROBE_MAPPING_3_4 for sensor_id in (0x02, 0x42, 0x82, 0xC2)} SIX_PROBES_MAPPING = { 0: [[1, 0x01], [2, 0x02]], 64: [[3, 0x04], [4, 0x08]], 128: [[5, 0x10], [6, 0x20]], } def decode_temp_humid(temp_humid_bytes: bytes) -> tuple[float, float]: """Decode potential negative temperatures.""" base_num = ( (temp_humid_bytes[0] << 16) + (temp_humid_bytes[1] << 8) + temp_humid_bytes[2] ) is_negative = base_num & 0x800000 temp_as_int = base_num & 0x7FFFFF temp_as_float = int(temp_as_int / 1000) / 10.0 if is_negative: temp_as_float = -temp_as_float humid = (temp_as_int % 1000) / 10.0 return temp_as_float, humid def decode_temps_probes(packet_value: int) -> float: """Filter potential negative temperatures.""" if packet_value < 0: return 0.0 return float(packet_value / 100) def decode_temps_probes_none(packet_value: int) -> float | None: """Filter potential negative temperatures.""" if packet_value < 0: return None return float(packet_value) def hex(data: bytes) -> str: """Return a string object containing two hexadecimal digits for each byte in the instance.""" return "b'{}'".format("".join(f"\\x{b:02x}" for b in data)) def decode_temps_from_4_bytes(packet_value: int) -> float: """Decode temperature values (to one decimal place).""" if packet_value & 0x80000000: # Handle freezing temperatures packet_value &= 0x7FFFFFFF return float(int(packet_value / -10000000) / -10) return float(int(packet_value / 1000000) / 10) def decode_humi_from_4_bytes(packet_value: int) -> float: """Decode humidity values (to one decimal place)""" packet_value &= 0x7FFFFFFF return float(int((packet_value % 1000000) / 1000) / 10) def decode_pm25_from_4_bytes(packet_value: int) -> int: """Decode humidity values""" packet_value &= 0x7FFFFFFF return int(packet_value % 1000) def calculate_crc(data: bytes) -> int: crc = 0x1D0F for b in data: for s in range(7, -1, -1): mask = 0 if (crc >> 15) ^ (b >> s) & 1: mask = 0x1021 crc = ((crc << 1) ^ mask) & 0xFFFF return crc def decrypt_data(key: bytes, data: bytes) -> bytes: cipher = Cipher(algorithms.AES(key[::-1]), modes.ECB()) decryptor = cipher.decryptor() return (decryptor.update(data[::-1]) + decryptor.finalize())[::-1] class SensorType(Enum): THERMOMETER = "thermometer" BUTTON = "button" MOTION = "motion" WINDOW = "window" VIBRATION = "vibration" PRESENCE = "presence" @dataclass class ModelInfo: """Model information for Govee sensors.""" model_id: str sensor_type: SensorType button_count: int sleepy: bool _MODEL_DB = { "H5121": ModelInfo("H5121", SensorType.MOTION, 0, True), "H5122": ModelInfo("H5122", SensorType.BUTTON, 1, True), "H5123": ModelInfo("H5123", SensorType.WINDOW, 0, True), "H5124": ModelInfo("H5124", SensorType.VIBRATION, 0, True), "H5125": ModelInfo("H5125", SensorType.BUTTON, 6, True), "H5126": ModelInfo("H5126", SensorType.BUTTON, 2, True), "H5127": ModelInfo("H5127", SensorType.PRESENCE, 0, True), } def get_model_info(model_id: str) -> ModelInfo: """Get model information for a Govee sensor.""" return _MODEL_DB.get( model_id, ModelInfo(model_id, SensorType.THERMOMETER, 0, False) ) class GoveeBluetoothDeviceData(BluetoothData): """Data for Govee BLE sensors.""" def _start_update(self, service_info: BluetoothServiceInfo) -> None: """Update from BLE advertisement data.""" _LOGGER.debug("Parsing Govee BLE advertisement data: %s", service_info) manufacturer_data = service_info.manufacturer_data service_uuids = service_info.service_uuids local_name = service_info.name address = service_info.address self.set_device_manufacturer("Govee") if local_name.startswith("Govee_"): self.set_device_name(service_info.name[6:].replace("_", " ")) if local_name.startswith("GV"): self.set_device_name(service_info.name[2:].replace("_", " ")) self.set_precision(2) for mfr_id, mfr_data in manufacturer_data.items(): if mfr_id in NOT_GOVEE_MANUFACTURER: continue self._process_mfr_data(address, local_name, mfr_id, mfr_data, service_uuids) @property def device_type(self) -> str | None: """Return the device type.""" primary_device_id = self.primary_device_id if device_type := self._device_id_to_type.get(primary_device_id): return device_type.partition("-")[0] return None @property def button_count(self) -> int: """Return the number of buttons on the device.""" device_type = self.device_type assert device_type is not None return get_model_info(device_type).button_count @property def sensor_type(self) -> SensorType: """Return the sensor type.""" device_type = self.device_type assert device_type is not None return get_model_info(device_type).sensor_type @property def sleepy(self) -> bool: """Return if the device is sleep.""" device_type = self.device_type assert device_type is not None return get_model_info(device_type).sleepy def _process_mfr_data( self, address: str, local_name: str, mgr_id: int, data: bytes, service_uuids: list[str], ) -> None: """Parser for Govee sensors.""" if debug_logging := _LOGGER.isEnabledFor(logging.DEBUG): _LOGGER.debug("Parsing Govee sensor: %s %s", mgr_id, hex(data)) msg_length = len(data) if msg_length > 25 and b"INTELLI_ROCKS" in data: # INTELLI_ROCKS sometimes ends up glued on to the end of the message data = data[:-25] msg_length = len(data) if debug_logging: _LOGGER.debug("Cleaned up packet: %s %s", mgr_id, data.hex()) if msg_length == 24: time_ms = data[2:6] enc_data = data[6:22] enc_crc = data[22:24] if not calculate_crc(enc_data) == int.from_bytes(enc_crc, "big"): _LOGGER.debug("CRC check failed for H512x: %s", hex(data)) return key = time_ms + bytes(12) try: decrypted = decrypt_data(key, enc_data) except ValueError: _LOGGER.warning("Failed to decrypt H512x: %s", hex(data)) return _LOGGER.debug("Decrypted H512x: %s - %s", decrypted, decrypted.hex()) model_id = decrypted[2] # GV5121 # 01040302640100000000000000000000 # GV5122 # 01050802640000000000000000000000 # 01050802640000000000000000000000 # GV5123 # 01050202640200000000000000000000 # GV5124 # 01030902640100000000000000000000 # GV5125 # 01010a02640000000000000000000000 # GV5126 # 01010b02640100000000000000000000 sensor_type = SensorType.BUTTON if "GV5121" in local_name or model_id == 3: self.set_device_type("H5121") self.set_device_name(f"5121{short_address(address)}") sensor_type = SensorType.MOTION elif "GV5122" in local_name or model_id == 8: self.set_device_type("H5122") self.set_device_name(f"5122{short_address(address)}") elif "GV5123" in local_name or model_id == 2: self.set_device_type("H5123") self.set_device_name(f"5123{short_address(address)}") sensor_type = SensorType.WINDOW elif "GV5124" in local_name or model_id == 9: self.set_device_type("H5124") self.set_device_name(f"5124{short_address(address)}") sensor_type = SensorType.VIBRATION elif "GV5125" in local_name or model_id == 10: self.set_device_type("H5125") self.set_device_name(f"5125{short_address(address)}") elif "GV5126" in local_name or model_id == 11: self.set_device_type("H5126") self.set_device_name(f"5126{short_address(address)}") else: return battery_percentage = decrypted[4] button_number_pressed = decrypted[5] self.update_predefined_sensor( SensorLibrary.BATTERY__PERCENTAGE, battery_percentage ) if sensor_type is SensorType.WINDOW: # H5123 is a door/window sensor self.update_predefined_binary_sensor( BinarySensorDeviceClass.WINDOW, button_number_pressed == 2 ) elif sensor_type is SensorType.VIBRATION: # H5124 is a vibration sensor if button_number_pressed == 1: self.fire_event("vibration", "vibration") elif sensor_type is SensorType.MOTION: if button_number_pressed == 1: self.fire_event("motion", "motion") else: self.fire_event(f"button_{button_number_pressed}", "press") return if msg_length == 6 and ( data.startswith(b"\xec\x00\x01\x01") and "H5127" in local_name or mgr_id == 0x8803 ): self.set_device_type("H5127") self.set_device_name(f"H5127{short_address(address)}") present = data[4] == 1 motion = data[5] == 17 self.update_predefined_binary_sensor( BinarySensorDeviceClass.OCCUPANCY, present ) self.update_predefined_binary_sensor(BinarySensorDeviceClass.MOTION, motion) if msg_length == 6 and ( (is_5072 := "H5072" in local_name) or (is_5075 := "H5075" in local_name) or mgr_id == 0xEC88 ): if is_5072: self.set_device_type("H5072") elif is_5075: self.set_device_type("H5075") else: self.set_device_type("H5072/H5075") temp, humi = decode_temp_humid(data[1:4]) batt = int(data[4] & 0x7F) err = bool(data[4] & 0x80) if temp >= MIN_TEMP and temp <= MAX_TEMP and not err: self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, temp) self.update_predefined_sensor(SensorLibrary.HUMIDITY__PERCENTAGE, humi) else: _LOGGER.debug( "Ignoring invalid sensor values, temperature: %.1f, humidity: %.1f, error: %s", temp, humi, err, ) self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, ERROR) self.update_predefined_sensor(SensorLibrary.HUMIDITY__PERCENTAGE, ERROR) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length in (6, 8) and ( (is_5108 := "H5108" in local_name) or (is_5100 := "H5100" in local_name) or (is_5101 := "H5101" in local_name) or (is_5102 := "H5102" in local_name) or (is_5103 := "H5103" in local_name) or (is_5104 := "H5104" in local_name) or (is_5105 := "H5105" in local_name) or (is_5174 := "H5174" in local_name) or (is_5177 := "H5177" in local_name) or (mgr_id == 0x0001 and msg_length == 8) ): if is_5108 or msg_length == 8: self.set_device_type("H5108") elif is_5100: self.set_device_type("H5100") elif is_5101: self.set_device_type("H5101") elif is_5102: self.set_device_type("H5102") elif is_5103: self.set_device_type("H5103") elif is_5104: self.set_device_type("H5104") elif is_5105: self.set_device_type("H5105") elif is_5174: self.set_device_type("H5174") elif is_5177: self.set_device_type("H5177") else: self.set_device_type("H5101/H5102/H5104/H5108/H5174/H5177") temp, humi = decode_temp_humid(data[2:5]) batt = int(data[5] & 0x7F) err = bool(data[5] & 0x80) if temp >= MIN_TEMP and temp <= MAX_TEMP and not err: self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, temp) self.update_predefined_sensor(SensorLibrary.HUMIDITY__PERCENTAGE, humi) else: _LOGGER.debug( "Ignoring invalid sensor values, temperature: %.1f, humidity: %.1f, error: %s", temp, humi, err, ) self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, ERROR) self.update_predefined_sensor(SensorLibrary.HUMIDITY__PERCENTAGE, ERROR) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length == 7 and ("H5074" in local_name or mgr_id == 0xEC88): self.set_device_type("H5074") (temp, humi, batt) = PACKED_hHB_LITTLE.unpack(data[1:6]) self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, temp / 100 ) self.update_predefined_sensor( SensorLibrary.HUMIDITY__PERCENTAGE, humi / 100 ) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length == 9 and ( mgr_id == 0xEC88 or "H5051" in local_name or "H5052" in local_name or "H5071" in local_name ): if "H5071" in local_name: self.set_device_type("H5071") elif "H5052" in local_name: self.set_device_type("H5052") else: self.set_device_type("H5051") self.set_device_name(f"H5051 {short_address(address)}") (temp, humi, batt) = PACKED_hHB_LITTLE.unpack(data[1:6]) self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, temp / 100 ) self.update_predefined_sensor( SensorLibrary.HUMIDITY__PERCENTAGE, humi / 100 ) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length == 9 and ( "H5178" in local_name or "B5178" in local_name or mgr_id == 0x0001 ): temp, humi = decode_temp_humid(data[3:6]) batt = int(data[6] & 0x7F) err = bool(data[6] & 0x80) sensor_id = data[2] device_id = "primary" if local_name.startswith("H5178") or local_name.startswith("B5178"): self.set_title(local_name) else: self.set_title("H5178") if sensor_id == 0: self.set_device_name( f"{local_name} Primary".replace("_", " "), device_id ) self.set_device_type("H5178", device_id) self.set_device_manufacturer("Govee", device_id) elif sensor_id == 1: device_id = "remote" self.set_device_name( f"{local_name} Remote".replace("_", " "), device_id ) self.set_device_type("H5178-REMOTE", device_id) self.set_device_manufacturer("Govee", device_id) elif debug_logging: _LOGGER.debug( "Unknown sensor id for Govee H5178," " please report to the developers, data: %s", hex(data), ) if temp >= MIN_TEMP and temp <= MAX_TEMP and not err: self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, temp, device_id=device_id ) self.update_predefined_sensor( SensorLibrary.HUMIDITY__PERCENTAGE, humi, device_id=device_id ) else: _LOGGER.debug( "Ignoring invalid sensor values, temperature: %.1f, humidity: %.1f, error: %s", temp, humi, err, ) self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, ERROR, device_id=device_id ) self.update_predefined_sensor( SensorLibrary.HUMIDITY__PERCENTAGE, ERROR, device_id=device_id ) self.update_predefined_sensor( SensorLibrary.BATTERY__PERCENTAGE, batt, device_id=device_id ) return if msg_length == 9 and ("H5179" in local_name or mgr_id == 0x8801): self.set_device_type("H5179") temp, humi, batt = PACKED_hHB_LITTLE.unpack(data[4:9]) self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, temp / 100 ) self.update_predefined_sensor( SensorLibrary.HUMIDITY__PERCENTAGE, humi / 100 ) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length == 14 and ( "H5181" in local_name or mgr_id in {0xF861, 0x388A, 0xEA42, 0xAAA2, 0xD14B} or "00008151-0000-1000-8000-00805f9b34fb" in service_uuids ): self.set_device_type("H5181") self.set_device_name(f"H5181 {short_address(address)}") (temp_probe_1, temp_alarm_1) = PACKED_hh.unpack(data[8:12]) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_1), decode_temps_probes(temp_alarm_1), 1 ) return if msg_length == 17 and ( "H5182" in local_name or mgr_id == 0x2730 or "00008251-0000-1000-8000-00805f9b34fb" in service_uuids ): self.set_device_type("H5182") self.set_device_name(f"H5182 {short_address(address)}") ( temp_probe_1, temp_alarm_1, _, temp_probe_2, temp_alarm_2, ) = PACKED_hhbhh.unpack(data[8:17]) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_1), decode_temps_probes(temp_alarm_1), 1 ) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_2), decode_temps_probes(temp_alarm_2), 2 ) return if msg_length == 14 and ( "H5183" in local_name or mgr_id in {0x67DD, 0xE02F, 0xF79F} or "00008351-0000-1000-8000-00805f9b34fb" in service_uuids ): self.set_device_type("H5183") self.set_device_name(f"H5183 {short_address(address)}") (temp_probe_1, temp_alarm_1) = PACKED_hh.unpack(data[8:12]) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_1), decode_temps_probes(temp_alarm_1), 1 ) return if msg_length == 17 and ( "H5184" in local_name or mgr_id == 0x1B36 or "00008451-0000-1000-8000-00805f9b34fb" in service_uuids ): sensor_id = data[6] self.set_device_type("H5184") self.set_device_name(f"H5184 {short_address(address)}") ( temp_probe_first, temp_alarm_first, _, temp_probe_second, temp_alarm_second, ) = PACKED_hhbhh.unpack(data[8:17]) if not (ids := FOUR_PROBES_MAPPING.get(sensor_id)): if debug_logging: _LOGGER.debug( "Unknown sensor id: %s for a H5184, data: %s", sensor_id, hex(data), ) return self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_first), decode_temps_probes(temp_alarm_first), ids[0], ) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_second), decode_temps_probes(temp_alarm_second), ids[1], ) return if msg_length == 20 and ( "H5185" in local_name or mgr_id in (0x4A32, 0x332, 0x4C32) or "00008551-0000-1000-8000-00805f9b34fb" in service_uuids ): self.set_device_type("H5185") self.set_device_name(f"H5185 {short_address(address)}") ( temp_probe_1, temp_alarm_1, _, temp_probe_2, temp_alarm_2, ) = PACKED_hhhhh.unpack(data[8:18]) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_1), decode_temps_probes(temp_alarm_1), 1 ) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_2), decode_temps_probes(temp_alarm_2), 2 ) return if msg_length == 20 and ( "H5198" in local_name or mgr_id == 0x3022 or "00009851-0000-1000-8000-00805f9b34fb" in service_uuids ): sensor_id = data[6] self.set_device_type("H5198") self.set_device_name(f"H5198 {short_address(address)}") ( temp_probe_first, temp_alarm_first, low_temp_alarm_first, temp_probe_second, temp_alarm_second, low_temp_alarm_second, ) = PACKED_hhhhhh.unpack(data[8:20]) if not (ids := FOUR_PROBES_MAPPING.get(sensor_id)): if debug_logging: _LOGGER.debug( "Unknown sensor id: %s for a H5198, data: %s", sensor_id, hex(data), ) return self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_first), decode_temps_probes(temp_alarm_first), ids[0], decode_temps_probes(low_temp_alarm_first), ) self.update_temp_probe_with_alarm( decode_temps_probes(temp_probe_second), decode_temps_probes(temp_alarm_second), ids[1], decode_temps_probes(low_temp_alarm_second), ) return if msg_length == 20 and "00005550-0000-1000-8000-00805f9b34fb" in service_uuids: self.set_device_type("H5055") self.set_device_name(f"H5055 {short_address(address)}") ( temp_probe_first, temp_min_first, temp_max_first, _, temp_probe_second, temp_min_second, temp_max_second, ) = PACKED_hhhchhh_LITTLE.unpack(data[5:18]) sensor_ids = data[3] if not (pids := SIX_PROBES_MAPPING.get(sensor_ids & 0xC0)): if debug_logging: _LOGGER.debug( "Unknown sensor id: %s for a H5055, data: %s", sensor_ids, hex(data), ) return if sensor_ids & pids[0][1]: self.update_temp_probe_with_alarm( temp_probe_first, decode_temps_probes_none(temp_max_first), pids[0][0], decode_temps_probes_none(temp_min_first), ) if sensor_ids & pids[1][1]: self.update_temp_probe_with_alarm( temp_probe_second, decode_temps_probes_none(temp_max_second), pids[1][0], decode_temps_probes_none(temp_min_second), ) batt = int(data[2] & 0x7F) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) return if msg_length == 6 and "H5106" in local_name: self.set_device_type("H5106") self.set_device_name(f"H5106 {short_address(address)}") packet_5106 = data[2:6].hex() four_bytes = int(packet_5106, 16) temp = decode_temps_from_4_bytes(four_bytes) humi = decode_humi_from_4_bytes(four_bytes) pm25 = decode_pm25_from_4_bytes(four_bytes) self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, temp) self.update_predefined_sensor(SensorLibrary.HUMIDITY__PERCENTAGE, humi) self.update_predefined_sensor( SensorLibrary.PM25__CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, pm25 ) return def update_temp_probe(self, temp: float, probe_id: int) -> None: """Update the temperature probe with the alarm temperature.""" self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, temp, key=f"temperature_probe_{probe_id}", name=f"Temperature Probe {probe_id}", ) def update_temp_probe_with_alarm( self, temp: float, alarm_temp: float | None, probe_id: int, low_alarm_temp: float | None = None, ) -> None: """Update the temperature probe with the alarm temperature.""" self.update_temp_probe(temp, probe_id) if alarm_temp is not None: self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, alarm_temp, key=f"temperature_alarm_probe_{probe_id}", name=f"Temperature Alarm Probe {probe_id}", ) if low_alarm_temp is not None: self.update_predefined_sensor( SensorLibrary.TEMPERATURE__CELSIUS, low_alarm_temp, key=f"low_temperature_alarm_probe_{probe_id}", name=f"Low Temperature Alarm Probe {probe_id}", ) govee-ble-0.40.0/src/govee_ble/py.typed000066400000000000000000000000001465030332700176460ustar00rootroot00000000000000govee-ble-0.40.0/tests/000077500000000000000000000000001465030332700146055ustar00rootroot00000000000000govee-ble-0.40.0/tests/__init__.py000066400000000000000000000000001465030332700167040ustar00rootroot00000000000000govee-ble-0.40.0/tests/test_parser.py000066400000000000000000005232621465030332700175240ustar00rootroot00000000000000import logging from bluetooth_sensor_state_data import BluetoothServiceInfo, DeviceClass, SensorUpdate from sensor_state_data import ( BinarySensorDescription, BinarySensorDeviceClass, BinarySensorValue, DeviceKey, Event, SensorDescription, SensorDeviceClass, SensorDeviceInfo, SensorValue, Units, ) from govee_ble.parser import GoveeBluetoothDeviceData, SensorType, get_model_info GVH5051_SERVICE_INFO = BluetoothServiceInfo( name="", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={60552: b"\x00\xba\x0a\xf9\x0f\x63\x02\x01\x01"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5075_SERVICE_INFO = BluetoothServiceInfo( name="GVH5075_2762", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={ 60552: b"\x00\x03A\xc2d\x00L\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5075_SERVICE_INFO_2 = BluetoothServiceInfo( name="GVH5075_DBF8", address="A4:C1:38:DD:DB:F8", rssi=-63, manufacturer_data={60552: b"\x00\x03M\xb2d\x00"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5075_SERVICE_INFO_NEGATIVE_VALUES = BluetoothServiceInfo( name="GVH5075_2762", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={60552: b"\x00\xbc\x00\x04>'"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5075_SERVICE_INFO_OVERSIZED_VALUES = BluetoothServiceInfo( name="GVH5075_2762", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={ 60552: b"\x00J\x00(;\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\xc2", }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5075_SERVICE_INFO_OTHER_VALUES = BluetoothServiceInfo( name="GVH5075_2762", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={60552: b"\x00\x03\x0f\xc95\x00"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5071_SERVICE_INFO = BluetoothServiceInfo( name="Govee_H5071_FD12", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={60552: b"\x00!\n\xb6\x12\x18\xc8\x00\x01"}, service_uuids=[ "0000180a-0000-1000-8000-00805f9b34fb", "0000fef5-0000-1000-8000-00805f9b34fb", "0000ec88-0000-1000-8000-00805f9b34fb", ], service_data={}, source="local", ) GVH5052_SERVICE_INFO = BluetoothServiceInfo( name="Govee_H5052_E81B", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={60552: b"\x00\x1c\x01\xa7\x14;\x00\x00\x02"}, service_uuids=[ "0000180a-0000-1000-8000-00805f9b34fb", "0000fef5-0000-1000-8000-00805f9b34fb", "0000ec88-0000-1000-8000-00805f9b34fb", ], service_data={}, source="local", ) GVH5177_SERVICE_INFO = BluetoothServiceInfo( name="GVH5177_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 1: b"\x01\x01\x036&dL\x00\x02\x15INTELLI_ROCKS_HWQw\xf2\xff\xc2" }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5184_SERVICE_INFO_1 = BluetoothServiceInfo( name="GVH5184_XXXX", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 6966: b" \x01\x00\x01\x01\xe4\x01\x86\x0c\x1c\xff\xff\x86\n\xf0\xff\xff", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008451-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5184_SERVICE_INFO_2 = BluetoothServiceInfo( name="GVH5184_XXXX", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 6966: b" \x01\x00\x01\x01\xe4\x02\x86\x0b\xb8\xff\xff\x86\x0bT\xff\xff", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008451-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5198_SERVICE_INFO = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 12322: b"\x6c\x01\x00\x01\x01\xa4\xc2\x0f\x0e\x10\xff\xff\xff\xff\x08\xfc\xff\xff\xff\xff" }, service_uuids=["00009851-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5198_VARIANT_SERVICE_INFO = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 12322: b"\x6c\x01\x00\x01\x01\xa3\xc1\x0f\x0b\xb8\xff\xff\xff\xff\t`\xff\xff\xff\xff" }, service_uuids=["00009851-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5198_INVALID_SERVICE_INFO = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 12322: b"\x6c\x01\x00\x01\x01\xa3\xd4\x0f\x0b\xb8\xff\xff\xff\xff\t`\xff\xff\xff\xff" }, service_uuids=["00009851-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5185_SERVICE_INFO = BluetoothServiceInfo( name="GVH5185_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 18994: b"\x87\x01\x00\x01\x01\xe4\xc1f\x084\xff\xff\xff\xff" b"\x084\xff\xff\xff\xffL\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["00008551-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5185_VARIANT_SERVICE_INFO = BluetoothServiceInfo( name="GVH5185_VAR2", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 818: b"T\x01\x00\x01\x01\xe4\xc1f\t\xc4\xff\xff\xff\xff\t\xc4\xff\xff\xff\xff", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008551-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5185_VARIANT_2_SERVICE_INFO = BluetoothServiceInfo( name="Govee_H5185_4C17", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 19506: b"\x17\x01\x00\x01\x01\xd7\x01f\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=[ "00001800-0000-1000-8000-00805f9b34fb", "00001801-0000-1000-8000-00805f9b34fb", "02f00000-0000-0000-0000-00000000fe00", "494e5445-4c4c-495f-524f-434b535f4857", ], service_data={}, source="local", ) GVH5183_SERVICE_INFO = BluetoothServiceInfo( name="GVH5183_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 26589: b"\xef\x01\x00\x01\x01\xe4\x01\x80\x084\xff\xff\x00" b"\x00L\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["00008351-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5183_NO_LOCAL_NAME_SERVICE_INFO = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 57391: b"\xcb\x01\x00\x01\x01\xe4\x00\x8f\x084\xff\xff\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008351-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5183_SERVICE_INFO_VARIANT = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 63391: b"s\x01\x00\x01\x01\xe4\x00\x80\n\xf0\xff\xff\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008351-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_SERVICE_INFO = BluetoothServiceInfo( name="GVH5181_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 14474: b"\xd8\x01\x00\x01\x01\xe4\x01\x86\x08\x98\x1d" b"\x10\x00\x00L\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_VARIANT_SERVICE_INFO = BluetoothServiceInfo( name="GVH5181_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 59970: b"\xba\x01\x00\x01\x01d\x00\x06\xff\xff\x1c\xe8\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_VARIANT_SERVICE_INFO_2 = BluetoothServiceInfo( name="GVH5181_2EC8", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 59970: b"\xba\x01\x00\x01\x01d\x00\x86\n(\x1c\xe8\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_VARIANT_SERVICE_INFO_3 = BluetoothServiceInfo( name="GVPROBE", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 63585: b"&\x01\x00\x01\x01\xe4\x01\x06\xff\xff\x1c\xd4\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_VARIANT_SERVICE_INFO_4 = BluetoothServiceInfo( name="", address="4125DDBA-2774-4851-9889-6AADDD4CAC3D", rssi=-56, manufacturer_data={ 43682: b"\xc1\x01\x00\x01\x01\xe4\x01\x86\x08\x98\x1a\xae\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5181_VARIANT_SERVICE_INFO_5 = BluetoothServiceInfo( name="", address="AA:BB:CC:DD:EE:FF", rssi=-56, manufacturer_data={ 53579: b"i\x01\x00\x01\x01\xe4\x01\x86\x07l \x1c\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["00008151-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5182_SERVICE_INFO = BluetoothServiceInfo( name="F34DC3CB-9CCF-336F-3CB1-3C6F525509E6", address="F34DC3CB-9CCF-336F-3CB1-3C6F525509E6", rssi=-56, manufacturer_data={ 10032: b"c\x01\x00\x01\x01\xe4\x01\x01\xff\xff\x12\x03\x01" b"\xff\xff\x00\x00L\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["00008251-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5179_SERVICE_INFO = BluetoothServiceInfo( name="Govee_H5179_3CD5", address="10F1A254-16A5-9F35-BE40-7034507A6967", rssi=-50, manufacturer_data={34817: b"\xec\x00\x01\x01\n\n\xa4\x06d"}, service_data={}, service_uuids=[ "0000180a-0000-1000-8000-00805f9b34fb", "0000fef5-0000-1000-8000-00805f9b34fb", "0000ec88-0000-1000-8000-00805f9b34fb", ], source="local", ) GVH5074_SERVICE_INFO = BluetoothServiceInfo( name="Govee_H5074_5FF4", address="99214D75-854A-E52B-704D-C5C9B7F5D59C", rssi=-67, manufacturer_data={ 60552: b"\x00\xe6\t\xbc\x12d\x02", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\xc2", }, service_data={}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], source="local", ) GVH5178_SERVICE_INFO = BluetoothServiceInfo( name="B51782BC8", address="A4:C1:38:75:2B:C8", rssi=-66, manufacturer_data={ 1: b"\x01\x01\x01\x00\x2a\xf7\x64\x00\x03", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\xc2", }, service_data={}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], source="local", ) GVH5178_SERVICE_INFO_ERROR = BluetoothServiceInfo( name="B51782BC8", address="A4:C1:38:75:2B:C8", rssi=-66, manufacturer_data={ 1: b"\x01\x01\x01\x00\x03\xe7\xe4\x00\x01", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\xc2", }, service_data={}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], source="local", ) GVH5055_SERVICE_INFO_PROBE_12 = BluetoothServiceInfo( name="", address="A4:C1:38:2F:AF:55", rssi=-63, manufacturer_data={ 44847: b"U\x00d\x01 \x1a\x00\xff\xff\xff\xff \x19\x00\xff\xff\xff\xff\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPr\xf2\xff\xc2", }, service_uuids=["00005550-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5055_SERVICE_INFO_PROBE_34 = BluetoothServiceInfo( name="", address="A4:C1:38:2F:AF:55", rssi=-63, manufacturer_data={ 44847: b"U\x00d\x4c \x1a\x00\xff\xff\xff\xff \x19\x00\x14\x00\xb1\x00\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPr\xf2\xff\xc2", }, service_uuids=["00005550-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5055_SERVICE_INFO_PROBE_56 = BluetoothServiceInfo( name="", address="A4:C1:38:2F:AF:55", rssi=-63, manufacturer_data={ 44847: b"U\x00d\xbf \x1a\x00\xff\xff\xb1\x00 \x19\x00\xff\xff\xff\xff\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPr\xf2\xff\xc2", }, service_uuids=["00005550-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5055_SERVICE_INFO_ERROR = BluetoothServiceInfo( name="", address="A4:C1:38:2F:AF:55", rssi=-63, manufacturer_data={ 44847: b"U\x00d\xfb \x1a\x00\xff\xff\xb1\x00 \x19\x00\xff\xff\xff\xff\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPr\xf2\xff\xc2", }, service_uuids=["00005550-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5108_SERVICE_INFO = BluetoothServiceInfo( name="GV51085242", address="A4:C1:38:75:2B:C8", rssi=-66, manufacturer_data={ 1: b"\x01\x01\x03\xc70d\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5108_SERVICE_INFO_NO_NAME = BluetoothServiceInfo( name="G", address="A4:C1:38:75:2B:C2", rssi=-66, manufacturer_data={ 1: b"\x01\x01\x03\xc70d\x00\x00", 76: b"\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c", }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5106_SERVICE_INFO = BluetoothServiceInfo( name="GVH5106_4E05", address="CC:32:37:35:4E:05", rssi=-66, manufacturer_data={1: b"\x01\x01\x0e\xd12\x98"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) NOT_GVH5106_SERVICE_INFO = BluetoothServiceInfo( name="RZSS", address="C5:22:77:8E:E0:1A", rssi=-66, manufacturer_data={1033: b"\x8cd_d", 1: b"\x01\x01\x0b\x00Xd"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", ) GVH5103_SERVICE_INFO = BluetoothServiceInfo( name="GVH5103_5A4E", address="CB:37:34:36:5A:4E", manufacturer_data={ 1: b"\x01\x01\x03Q>dL\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", rssi=-45, ) GVH5105_SERVICE_INFO = BluetoothServiceInfo( name="GVH5105_7336", address="D7:35:33:33:73:36", manufacturer_data={ 1: b"\x01\x01\x03:\xeddL\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", rssi=-45, ) GVH5105_SERVICE_INFO_2 = BluetoothServiceInfo( name="GVH5105_7336", address="D7:35:33:33:73:36", manufacturer_data={1: b"\x01\x01\x032^d"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, rssi=-73, source="local", ) GVH5100_SERVICE_INFO = BluetoothServiceInfo( name="GVH5100_7738", address="C4:35:33:33:77:38", manufacturer_data={1: b"\x01\x01\x03FTd"}, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", rssi=-45, ) GVH5108_WITH_PROBE_SERVICE_INFO = BluetoothServiceInfo( name="GV51080C25", address="CC:38:30:34:0C:25", manufacturer_data={ 1: b"\x01\x01\x03FHd\x00\x00L\x00\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c" }, service_uuids=["0000ec88-0000-1000-8000-00805f9b34fb"], service_data={}, source="local", rssi=-45, ) GV5126_BUTTON_SERVICE_INFO = BluetoothServiceInfo( name="GV51260F45", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"\x01\xc4\x00\x01k\x98\xd3]\xcb\xbc\x13\x16\xc4\xc9?+\xf9+\xec\x86Y\xce @" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5126_BUTTON_0_SERVICE_INFO = BluetoothServiceInfo( name="GV51260F45", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"\x01\xc4\x00\x18\xd8\x96\xd1\xff\x10s\x1fL\x85]\xdfT\xf1\xe7\x7f\xe8\x8b\x0e\xc2?" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5125_BUTTON_0_SERVICE_INFO = BluetoothServiceInfo( name="GV51255367", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 60552: b"\x01\n.\xaf\xd9085Sg\x01\x01", 61320: b".\xaf\x00\x00b\\\xae\x92\x15\xb6\xa8\n\xd4\x81K\xcaK_s\xd9E40\x02", }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5125_BUTTON_1_SERVICE_INFO = BluetoothServiceInfo( name="GV51255367", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 60552: b"\x01\n.\xaf\xd9085Sg\x01\x01", 61320: b".\xaf\x00\x00\xfb\x0e\xc9h\xd7\x05l\xaf*\xf3\x1b\xe8w\xf1\xe1\xe8\xe3\xa7\xf8\xc6", }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5122_BUTTON_0_SERVICE_INFO = BluetoothServiceInfo( name="GV51225634", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 60552: b"\x01\x08\xf3\n\xd2297V4\x01\x05", 61320: b"\xf3\n\x00\x00d\x82H\xe8` b%\x88\xc0/\xd2X\xcb?\x1b\x85D\xd90", }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5123_OPEN_SERVICE_INFO = BluetoothServiceInfo( name="GV51230B3D", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"=\xec\x00\x00\xdeCw\xd5^U\xf9\x91In6\xbd\xc6\x7f\x8b,'\x06t\x97" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5123_CLOSED_SERVICE_INFO = BluetoothServiceInfo( name="GV51230B3D", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"=\xec\x00\x01Y\xdbk\xd9\xbe\xd7\xaf\xf7*&\xaaK\xd7-\xfa\x94W>[\xe9" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5121_MOTION_SERVICE_INFO = BluetoothServiceInfo( name="GV5121195A", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"Y\x94\x00\x00\xf0\xb9\x197\xaeP\xb67,\x86j\xc2\xf3\xd0a\xe7\x17\xc0,\xef" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5121_MOTION_SERVICE_INFO_2 = BluetoothServiceInfo( name="GV5121195A", address="C1:37:37:32:0F:45", rssi=-36, manufacturer_data={ 61320: b"Y\x94\x00\x06\xa3f6e\xc8\xe6\xfdv\x04\xaf\xe7k\xbf\xab\xeb\xbf\xb3\xa3\xd5\x19" }, service_data={}, service_uuids=[], source="24:4C:AB:03:E6:B8", ) GV5122_PASSIVE_SERVICE_INFO = BluetoothServiceInfo( name="D2:32:39:37:56:34", address="D2:32:39:37:56:34", rssi=-68, manufacturer_data={ 61320: b'\xf3\n\x00$\xaa\xea\xa5c\x1b\x81\x08\x99\xe1\xc4\xe1@\x98\x83\xfe"Y5\xc4d' }, service_data={}, service_uuids=[], source="08:3A:F2:7B:50:9C", ) GV5122_PASSIVE_2_SERVICE_INFO = BluetoothServiceInfo( name="D2:32:39:37:56:34", address="D2:32:39:37:56:34", rssi=-68, manufacturer_data={ 61320: b"\xfe~\x00\x00\tL\xa8j\x1a\xf0\xd2\xbcD&\x0b\xd5\xaf4L\x0b\xe5\xc7\xf1\n" }, service_data={}, service_uuids=[], source="08:3A:F2:7B:50:9C", ) GVH5124_SERVICE_INFO = BluetoothServiceInfo( name="GV51242F68", address="D3:32:39:37:2F:68", rssi=-67, manufacturer_data={ 61320: b"\x08\xa2\x00\x01%\xc2YW\xfdzu\x0e\xf24\xa2\x18\xbb\x15F|[s{\x04" }, service_data={}, service_uuids=[], source="local", ) GVH5124_2_SERVICE_INFO = BluetoothServiceInfo( name="GV51242F68", address="D3:32:39:37:2F:68", rssi=-67, manufacturer_data={ 61320: b"\x08\xa2\x00\x13^Sso\xaeC\x9aU\xcf\xd8\x02\x1b\xdf\xd5\xded;+\xd6\x13" }, service_data={}, service_uuids=[], source="local", ) GVH5127_MOTION_SERVICE_INFO = BluetoothServiceInfo( name="GVH51275E3F", address="D0:C9:07:1B:5E:3F", rssi=-61, manufacturer_data={34819: b"\xec\x00\x01\x01\x01\x11"}, service_data={}, service_uuids=[], source="Core Bluetooth", ) GVH5127_PRESENT_SERVICE_INFO = BluetoothServiceInfo( name="GVH51275E3F", address="D0:C9:07:1B:5E:3F", rssi=-60, manufacturer_data={34819: b"\xec\x00\x01\x01\x01\x01"}, service_data={}, service_uuids=[], source="Core Bluetooth", ) GVH5127_ABSENT_SERVICE_INFO = BluetoothServiceInfo( name="GVH51275E3F", address="D0:C9:07:1B:5E:3F", rssi=-53, manufacturer_data={34819: b"\xec\x00\x01\x01\x00\x00"}, service_data={}, service_uuids=[], source="Core Bluetooth", ) def test_can_create(): GoveeBluetoothDeviceData() def test_gvh5051(): parser = GoveeBluetoothDeviceData() service_info = GVH5051_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5051 8105", model="H5051", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=27.46, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=40.89, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=99, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5052(): parser = GoveeBluetoothDeviceData() service_info = GVH5052_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5052 E81B", model="H5052", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=2.84, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=52.87, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=59, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5071(): parser = GoveeBluetoothDeviceData() service_info = GVH5071_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5071 FD12", model="H5071", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=25.93, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=47.9, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=24, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5075(): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5075 2762", model="H5075", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.3, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=44.2, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5075_2(): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO_2 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5075 DBF8", model="H5075", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.6, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=49.8, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5075_negative_values(): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO_NEGATIVE_VALUES result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5075 2762", model="H5075", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value="error", ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value="error", ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=62, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5075_oversized_values(): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO_OVERSIZED_VALUES result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5075 2762", model="H5075", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value="error", ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value="error", ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=59, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5075_other_values(): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO_OTHER_VALUES result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5075 2762", model="H5075", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=20.0, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=64.9, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=53, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5177(): parser = GoveeBluetoothDeviceData() service_info = GVH5177_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5177 2EC8", model="H5177", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.0, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=47.0, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5103(): parser = GoveeBluetoothDeviceData() service_info = GVH5103_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5103 5A4E", model="H5103", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.7, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=40.6, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-45, ), }, ) def test_gvh5105(): parser = GoveeBluetoothDeviceData() service_info = GVH5105_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5105 7336", model="H5105", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.1, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=69.3, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-45, ), }, ) def test_gvh5105_2(): parser = GoveeBluetoothDeviceData() service_info = GVH5105_SERVICE_INFO_2 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5105 7336", model="H5105", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=20.9, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=50.2, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-73, ), }, ) def test_gvh5100(): parser = GoveeBluetoothDeviceData() service_info = GVH5100_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5100 7738", model="H5100", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.4, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=61.2, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-45, ), }, ) def test_gvh5108_with_external_probe(): parser = GoveeBluetoothDeviceData() service_info = GVH5108_WITH_PROBE_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51080C25", model="H5108", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=21.4, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=60.0, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-45, ), }, ) def test_gvh5126_button_1(): parser = GoveeBluetoothDeviceData() service_info = GV5126_BUTTON_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 2 assert parser.sleepy is True assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51260F45", model="H5126", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_1", device_id=None): Event( device_key=DeviceKey(key="button_1", device_id=None), name="Button " "1", event_type="press", event_properties=None, ) }, ) def test_gvh5126_button_0(): parser = GoveeBluetoothDeviceData() service_info = GV5126_BUTTON_0_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 2 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51260F45", model="H5126", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_0", device_id=None): Event( device_key=DeviceKey(key="button_0", device_id=None), name="Button " "0", event_type="press", event_properties=None, ) }, ) def test_gvh5125_button_0(): parser = GoveeBluetoothDeviceData() service_info = GV5125_BUTTON_0_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 6 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51250F45", model="H5125", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_0", device_id=None): Event( device_key=DeviceKey(key="button_0", device_id=None), name="Button " "0", event_type="press", event_properties=None, ) }, ) def test_gvh5125_button_1(): parser = GoveeBluetoothDeviceData() service_info = GV5125_BUTTON_1_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 6 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51250F45", model="H5125", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_1", device_id=None): Event( device_key=DeviceKey(key="button_1", device_id=None), name="Button " "1", event_type="press", event_properties=None, ) }, ) def test_gvh5122_button_0(): parser = GoveeBluetoothDeviceData() service_info = GV5122_BUTTON_0_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 1 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51220F45", model="H5122", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_0", device_id=None): Event( device_key=DeviceKey(key="button_0", device_id=None), name="Button " "0", event_type="press", event_properties=None, ) }, ) def test_gvh5122_passive_button_0(): parser = GoveeBluetoothDeviceData() service_info = GV5122_PASSIVE_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 1 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51225634", model="H5122", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-68, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_0", device_id=None): Event( device_key=DeviceKey(key="button_0", device_id=None), name="Button " "0", event_type="press", event_properties=None, ) }, ) def test_gvh5122_passive_2_button_0(): parser = GoveeBluetoothDeviceData() service_info = GV5122_PASSIVE_2_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 1 assert parser.sensor_type is SensorType.BUTTON assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51225634", model="H5122", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-68, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="button_0", device_id=None): Event( device_key=DeviceKey(key="button_0", device_id=None), name="Button " "0", event_type="press", event_properties=None, ) }, ) def test_gvh5123_open(): parser = GoveeBluetoothDeviceData() service_info = GV5123_OPEN_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51230F45", model="H5123", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), }, binary_entity_descriptions={ DeviceKey(key="window", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="window", device_id=None), device_class=BinarySensorDeviceClass.WINDOW, ) }, binary_entity_values={ DeviceKey(key="window", device_id=None): BinarySensorValue( device_key=DeviceKey(key="window", device_id=None), name="Window", native_value=True, ) }, events={}, ) def test_gvh5123_closed(): parser = GoveeBluetoothDeviceData() service_info = GV5123_CLOSED_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.WINDOW assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51230F45", model="H5123", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), }, binary_entity_descriptions={ DeviceKey(key="window", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="window", device_id=None), device_class=BinarySensorDeviceClass.WINDOW, ) }, binary_entity_values={ DeviceKey(key="window", device_id=None): BinarySensorValue( device_key=DeviceKey(key="window", device_id=None), name="Window", native_value=False, ) }, events={}, ) def test_gvh5124_vibrating(): parser = GoveeBluetoothDeviceData() service_info = GVH5124_SERVICE_INFO result = parser.update(service_info) assert parser.sensor_type is SensorType.VIBRATION assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51242F68", model="H5124", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-67, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="vibration", device_id=None): Event( device_key=DeviceKey(key="vibration", device_id=None), name="Vibration", event_type="vibration", event_properties=None, ) }, ) def test_gvh5124_vibrating_2(): parser = GoveeBluetoothDeviceData() service_info = GVH5124_2_SERVICE_INFO result = parser.update(service_info) assert parser.sensor_type is SensorType.VIBRATION assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51242F68", model="H5124", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-67, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="vibration", device_id=None): Event( device_key=DeviceKey(key="vibration", device_id=None), name="Vibration", event_type="vibration", event_properties=None, ) }, ) def test_gvh5121_motion(): parser = GoveeBluetoothDeviceData() service_info = GV5121_MOTION_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.MOTION assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51210F45", model="H5121", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="motion", device_id=None): Event( device_key=DeviceKey(key="motion", device_id=None), name="Motion", event_type="motion", event_properties=None, ) }, ) def test_gvh5121_motion_2(): parser = GoveeBluetoothDeviceData() service_info = GV5121_MOTION_SERVICE_INFO_2 result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.MOTION assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51210F45", model="H5121", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-36, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), }, binary_entity_descriptions={}, binary_entity_values={}, events={ DeviceKey(key="motion", device_id=None): Event( device_key=DeviceKey(key="motion", device_id=None), name="Motion", event_type="motion", event_properties=None, ) }, ) def test_gvh5184_packet_type_1(): parser = GoveeBluetoothDeviceData() result = parser.update(GVH5184_SERVICE_INFO_1) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5184 AC3D", model="H5184", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=31.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature Probe 2", native_value=28.0, ), DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature Alarm Probe 2", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5184_packet_type_2(): parser = GoveeBluetoothDeviceData() result = parser.update(GVH5184_SERVICE_INFO_2) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5184 AC3D", model="H5184", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_3", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_3", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_3", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_3", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_4", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_3", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_3", device_id=None), name="Temperature Probe 3", native_value=30.0, ), DeviceKey(key="temperature_alarm_probe_3", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_3", device_id=None), name="Temperature Alarm Probe 3", native_value=0.0, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_4", device_id=None), name="Temperature Probe 4", native_value=29.0, ), DeviceKey(key="temperature_alarm_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), name="Temperature Alarm Probe 4", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5185(): parser = GoveeBluetoothDeviceData() service_info = GVH5185_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5185 AC3D", model="H5185", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=21.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature Probe 2", native_value=21.0, ), DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature Alarm Probe 2", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5185_variant(): parser = GoveeBluetoothDeviceData() service_info = GVH5185_VARIANT_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5185 AC3D", model="H5185", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), }, entity_values={ DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature " "Alarm " "Probe " "2", native_value=0.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=0.0, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=25.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature " "Probe " "2", native_value=25.0, ), }, ) def test_gvh5185_2_variant(): parser = GoveeBluetoothDeviceData() service_info = GVH5185_VARIANT_2_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5185 AC3D", model="H5185", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature " "Alarm " "Probe " "2", native_value=0.0, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=0.0, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature " "Probe " "2", native_value=0.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), }, binary_entity_descriptions={}, binary_entity_values={}, ) def test_gvh5183(): parser = GoveeBluetoothDeviceData() service_info = GVH5183_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5183 AC3D", model="H5183", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=21.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5183_no_local_name(): parser = GoveeBluetoothDeviceData() service_info = GVH5183_NO_LOCAL_NAME_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5183 AC3D", model="H5183", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=21.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5183_variant(): parser = GoveeBluetoothDeviceData() service_info = GVH5183_SERVICE_INFO_VARIANT result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5183 AC3D", model="H5183", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=28.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=0.0, ), }, binary_entity_descriptions={}, binary_entity_values={}, ) def test_gvh5181(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 AC3D", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=22.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=74.4, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5181_variant(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_VARIANT_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 AC3D", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=0.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=74.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5181_variant_2(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_VARIANT_SERVICE_INFO_2 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 AC3D", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=26.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=74.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5181_variant_3(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_VARIANT_SERVICE_INFO_3 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 AC3D", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=73.8, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), }, binary_entity_descriptions={}, binary_entity_values={}, ) def test_gvh5181_variant_4(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_VARIANT_SERVICE_INFO_4 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 AC3D", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=22.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=68.3, ), }, binary_entity_descriptions={}, binary_entity_values={}, ) def test_gvh5181_variant_5(): parser = GoveeBluetoothDeviceData() service_info = GVH5181_VARIANT_SERVICE_INFO_5 result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5181 EEFF", model="H5181", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), }, entity_values={ DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature " "Alarm " "Probe " "1", native_value=82.2, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-56, ), DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature " "Probe " "1", native_value=19.0, ), }, binary_entity_descriptions={}, binary_entity_values={}, ) def test_gvh5182(): parser = GoveeBluetoothDeviceData() service_info = GVH5182_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5182 09E6", model="H5182", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=0.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=46.11, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature Probe 2", native_value=0.0, ), DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature Alarm Probe 2", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5179(): parser = GoveeBluetoothDeviceData() service_info = GVH5179_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5179 3CD5", model="H5179", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=25.7, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=17.0, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-50, ), }, ) def test_gvh5074(): parser = GoveeBluetoothDeviceData() service_info = GVH5074_SERVICE_INFO result = parser.update(service_info) assert parser.sleepy is False assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5074 5FF4", model="H5074", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=25.34, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=47.96, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-67, ), }, ) def test_gvh5178(): parser = GoveeBluetoothDeviceData() service_info = GVH5178_SERVICE_INFO result = parser.update(service_info) assert parser.device_type == "H5178" assert result == SensorUpdate( title="B51782BC8", devices={ None: SensorDeviceInfo( name=None, model=None, manufacturer="Govee", sw_version=None, hw_version=None, ), "remote": SensorDeviceInfo( name="B51782BC8 Remote", model="H5178-REMOTE", manufacturer="Govee", sw_version=None, hw_version=None, ), }, entity_descriptions={ DeviceKey(key="temperature", device_id="remote"): SensorDescription( device_key=DeviceKey(key="temperature", device_id="remote"), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id="remote"): SensorDescription( device_key=DeviceKey(key="humidity", device_id="remote"), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id="remote"): SensorDescription( device_key=DeviceKey(key="battery", device_id="remote"), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id="remote"): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id="remote"), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id="remote"): SensorValue( device_key=DeviceKey(key="temperature", device_id="remote"), name="Temperature", native_value=1.0, ), DeviceKey(key="humidity", device_id="remote"): SensorValue( device_key=DeviceKey(key="humidity", device_id="remote"), name="Humidity", native_value=99.9, ), DeviceKey(key="battery", device_id="remote"): SensorValue( device_key=DeviceKey(key="battery", device_id="remote"), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id="remote"): SensorValue( device_key=DeviceKey(key="signal_strength", device_id="remote"), name="Signal Strength", native_value=-66, ), }, ) def test_gvh5178_error(): parser = GoveeBluetoothDeviceData() service_info = GVH5178_SERVICE_INFO_ERROR result = parser.update(service_info) assert result == SensorUpdate( title="B51782BC8", devices={ None: SensorDeviceInfo( name=None, model=None, manufacturer="Govee", sw_version=None, hw_version=None, ), "remote": SensorDeviceInfo( name="B51782BC8 Remote", model="H5178-REMOTE", manufacturer="Govee", sw_version=None, hw_version=None, ), }, entity_descriptions={ DeviceKey(key="temperature", device_id="remote"): SensorDescription( device_key=DeviceKey(key="temperature", device_id="remote"), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id="remote"): SensorDescription( device_key=DeviceKey(key="humidity", device_id="remote"), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id="remote"): SensorDescription( device_key=DeviceKey(key="battery", device_id="remote"), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id="remote"): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id="remote"), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id="remote"): SensorValue( device_key=DeviceKey(key="temperature", device_id="remote"), name="Temperature", native_value="error", ), DeviceKey(key="humidity", device_id="remote"): SensorValue( device_key=DeviceKey(key="humidity", device_id="remote"), name="Humidity", native_value="error", ), DeviceKey(key="battery", device_id="remote"): SensorValue( device_key=DeviceKey(key="battery", device_id="remote"), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id="remote"): SensorValue( device_key=DeviceKey(key="signal_strength", device_id="remote"), name="Signal Strength", native_value=-66, ), }, ) def test_gvh5198_probe_1_2(): parser = GoveeBluetoothDeviceData() service_info = GVH5198_VARIANT_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5198 AC3D", model="H5198", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="low_temperature_alarm_probe_1", device_id=None ): SensorDescription( device_key=DeviceKey( key="low_temperature_alarm_probe_1", device_id=None ), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="low_temperature_alarm_probe_2", device_id=None ): SensorDescription( device_key=DeviceKey( key="low_temperature_alarm_probe_2", device_id=None ), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=30.0, ), DeviceKey(key="temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_1", device_id=None), name="Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="low_temperature_alarm_probe_1", device_id=None): SensorValue( device_key=DeviceKey( key="low_temperature_alarm_probe_1", device_id=None ), name="Low Temperature Alarm Probe 1", native_value=0.0, ), DeviceKey(key="temperature_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_2", device_id=None), name="Temperature Probe 2", native_value=24.0, ), DeviceKey(key="temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_2", device_id=None), name="Temperature Alarm Probe 2", native_value=0.0, ), DeviceKey(key="low_temperature_alarm_probe_2", device_id=None): SensorValue( device_key=DeviceKey( key="low_temperature_alarm_probe_2", device_id=None ), name="Low Temperature Alarm Probe 2", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5198_probe_3_4(): parser = GoveeBluetoothDeviceData() service_info = GVH5198_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5198 AC3D", model="H5198", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_3", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_3", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_3", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_3", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="low_temperature_alarm_probe_3", device_id=None ): SensorDescription( device_key=DeviceKey( key="low_temperature_alarm_probe_3", device_id=None ), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_4", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ): SensorDescription( device_key=DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_3", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_3", device_id=None), name="Temperature Probe 3", native_value=36.0, ), DeviceKey(key="temperature_alarm_probe_3", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_3", device_id=None), name="Temperature Alarm Probe 3", native_value=0.0, ), DeviceKey(key="low_temperature_alarm_probe_3", device_id=None): SensorValue( device_key=DeviceKey( key="low_temperature_alarm_probe_3", device_id=None ), name="Low Temperature Alarm Probe 3", native_value=0.0, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_4", device_id=None), name="Temperature Probe 4", native_value=23.0, ), DeviceKey(key="temperature_alarm_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), name="Temperature Alarm Probe 4", native_value=0.0, ), DeviceKey(key="low_temperature_alarm_probe_4", device_id=None): SensorValue( device_key=DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ), name="Low Temperature Alarm Probe 4", native_value=0.0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5198_invalid(): parser = GoveeBluetoothDeviceData() service_info = GVH5198_INVALID_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5198 AC3D", model="H5198", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-56, ), }, ) def test_gvh5075_debug_hex(caplog): parser = GoveeBluetoothDeviceData() service_info = GVH5075_SERVICE_INFO with caplog.at_level(logging.DEBUG): parser.update(service_info) assert ( "Parsing Govee sensor: 60552 b'\\x00\\x03\\x41\\xc2\\x64\\x00\\x4c\\x00\\x02\\x15\\x49\\x4e\\x54" "\\x45\\x4c\\x4c\\x49\\x5f\\x52\\x4f\\x43\\x4b\\x53\\x5f\\x48\\x57\\x50\\x75\\xf2\\xff\\x0c'" in caplog.text ) def test_gvh5055_probe_1_2(): parser = GoveeBluetoothDeviceData() result = parser.update(GVH5055_SERVICE_INFO_PROBE_12) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5055 AF55", model="H5055", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_1", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_1", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_1", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_1", device_id=None), name="Temperature Probe 1", native_value=26, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5055_probe_3_4(): parser = GoveeBluetoothDeviceData() result = parser.update(GVH5055_SERVICE_INFO_PROBE_34) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5055 AF55", model="H5055", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_3", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_3", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_4", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ): SensorDescription( device_key=DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_3", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_3", device_id=None), name="Temperature Probe 3", native_value=26, ), DeviceKey(key="temperature_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_4", device_id=None), name="Temperature Probe 4", native_value=25, ), DeviceKey(key="temperature_alarm_probe_4", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_4", device_id=None), name="Temperature Alarm Probe 4", native_value=177.0, ), DeviceKey(key="low_temperature_alarm_probe_4", device_id=None): SensorValue( device_key=DeviceKey( key="low_temperature_alarm_probe_4", device_id=None ), name="Low Temperature Alarm Probe 4", native_value=20.0, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5055_probe_5_6(): parser = GoveeBluetoothDeviceData() result = parser.update(GVH5055_SERVICE_INFO_PROBE_56) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5055 AF55", model="H5055", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature_probe_5", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_5", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="temperature_probe_6", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature_probe_6", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey( key="temperature_alarm_probe_5", device_id=None ): SensorDescription( device_key=DeviceKey(key="temperature_alarm_probe_5", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature_probe_5", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_5", device_id=None), name="Temperature Probe 5", native_value=26, ), DeviceKey(key="temperature_probe_6", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_probe_6", device_id=None), name="Temperature Probe 6", native_value=25, ), DeviceKey(key="temperature_alarm_probe_5", device_id=None): SensorValue( device_key=DeviceKey(key="temperature_alarm_probe_5", device_id=None), name="Temperature Alarm Probe 5", native_value=177.0, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-63, ), }, ) def test_gvh5055_error(caplog): parser = GoveeBluetoothDeviceData() service_info = GVH5055_SERVICE_INFO_ERROR with caplog.at_level(logging.DEBUG): parser.update(service_info) print(caplog.text) assert ( "Parsing Govee sensor: 44847 b'\\x55\\x00\\x64\\xfb\\x20\\x1a\\x00\\xff\\xff\\xb1" "\\x00\\x20\\x19\\x00\\xff\\xff\\xff\\xff\\x00\\x00'" in caplog.text ) def test_gvh5108(): parser = GoveeBluetoothDeviceData() service_info = GVH5108_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="51085242", model="H5108", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=24.7, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=60.00, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-66, ), }, ) def test_gvh5108_no_name(): parser = GoveeBluetoothDeviceData() service_info = GVH5108_SERVICE_INFO_NO_NAME result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name=None, model="H5108", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="battery", device_id=None): SensorDescription( device_key=DeviceKey(key="battery", device_id=None), device_class=DeviceClass.BATTERY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=24.7, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=60.00, ), DeviceKey(key="battery", device_id=None): SensorValue( device_key=DeviceKey(key="battery", device_id=None), name="Battery", native_value=100, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-66, ), }, ) def test_gvh5106(): parser = GoveeBluetoothDeviceData() service_info = GVH5106_SERVICE_INFO result = parser.update(service_info) assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H5106 4E05", model="H5106", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="temperature", device_id=None): SensorDescription( device_key=DeviceKey(key="temperature", device_id=None), device_class=DeviceClass.TEMPERATURE, native_unit_of_measurement=Units.TEMP_CELSIUS, ), DeviceKey(key="humidity", device_id=None): SensorDescription( device_key=DeviceKey(key="humidity", device_id=None), device_class=DeviceClass.HUMIDITY, native_unit_of_measurement=Units.PERCENTAGE, ), DeviceKey(key="pm25", device_id=None): SensorDescription( device_key=DeviceKey(key="pm25", device_id=None), device_class=DeviceClass.PM25, native_unit_of_measurement=Units.CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, ), DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=DeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ), }, entity_values={ DeviceKey(key="temperature", device_id=None): SensorValue( device_key=DeviceKey(key="temperature", device_id=None), name="Temperature", native_value=24.8, ), DeviceKey(key="humidity", device_id=None): SensorValue( device_key=DeviceKey(key="humidity", device_id=None), name="Humidity", native_value=59.1, ), DeviceKey(key="pm25", device_id=None): SensorValue( device_key=DeviceKey(key="pm25", device_id=None), name="Pm25", native_value=0, ), DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal Strength", native_value=-66, ), }, ) def test_not_gvh5106(): parser = GoveeBluetoothDeviceData() service_info = NOT_GVH5106_SERVICE_INFO assert not parser.supported(service_info) def test_get_model_info(): assert get_model_info("H5074").sensor_type == SensorType.THERMOMETER assert get_model_info("H5075").sensor_type == SensorType.THERMOMETER assert get_model_info("H5072").sensor_type == SensorType.THERMOMETER assert get_model_info("H5121").sensor_type == SensorType.MOTION assert get_model_info("H5122").sensor_type == SensorType.BUTTON assert get_model_info("H5122").button_count == 1 assert get_model_info("H5123").sensor_type == SensorType.WINDOW assert get_model_info("H5125").sensor_type == SensorType.BUTTON assert get_model_info("H5125").button_count == 6 assert get_model_info("H5126").sensor_type == SensorType.BUTTON assert get_model_info("H5126").button_count == 2 assert get_model_info("H5124").sensor_type == SensorType.VIBRATION assert get_model_info("H5127").sensor_type == SensorType.PRESENCE def test_gvh5127_motion(): parser = GoveeBluetoothDeviceData() service_info = GVH5127_MOTION_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.PRESENCE assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H51275E3F", model="H5127", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ) }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-61, ) }, binary_entity_descriptions={ DeviceKey(key="occupancy", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="occupancy", device_id=None), device_class=BinarySensorDeviceClass.OCCUPANCY, ), DeviceKey(key="motion", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="motion", device_id=None), device_class=BinarySensorDeviceClass.MOTION, ), }, binary_entity_values={ DeviceKey(key="occupancy", device_id=None): BinarySensorValue( device_key=DeviceKey(key="occupancy", device_id=None), name="Occupancy", native_value=True, ), DeviceKey(key="motion", device_id=None): BinarySensorValue( device_key=DeviceKey(key="motion", device_id=None), name="Motion", native_value=True, ), }, events={}, ) def test_gvh5127_presence(): parser = GoveeBluetoothDeviceData() service_info = GVH5127_PRESENT_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.PRESENCE assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H51275E3F", model="H5127", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ) }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-60, ) }, binary_entity_descriptions={ DeviceKey(key="occupancy", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="occupancy", device_id=None), device_class=BinarySensorDeviceClass.OCCUPANCY, ), DeviceKey(key="motion", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="motion", device_id=None), device_class=BinarySensorDeviceClass.MOTION, ), }, binary_entity_values={ DeviceKey(key="occupancy", device_id=None): BinarySensorValue( device_key=DeviceKey(key="occupancy", device_id=None), name="Occupancy", native_value=True, ), DeviceKey(key="motion", device_id=None): BinarySensorValue( device_key=DeviceKey(key="motion", device_id=None), name="Motion", native_value=False, ), }, events={}, ) def test_gvh5127_absent(): parser = GoveeBluetoothDeviceData() service_info = GVH5127_ABSENT_SERVICE_INFO result = parser.update(service_info) assert parser.button_count == 0 assert parser.sensor_type is SensorType.PRESENCE assert result == SensorUpdate( title=None, devices={ None: SensorDeviceInfo( name="H51275E3F", model="H5127", manufacturer="Govee", sw_version=None, hw_version=None, ) }, entity_descriptions={ DeviceKey(key="signal_strength", device_id=None): SensorDescription( device_key=DeviceKey(key="signal_strength", device_id=None), device_class=SensorDeviceClass.SIGNAL_STRENGTH, native_unit_of_measurement=Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ) }, entity_values={ DeviceKey(key="signal_strength", device_id=None): SensorValue( device_key=DeviceKey(key="signal_strength", device_id=None), name="Signal " "Strength", native_value=-53, ) }, binary_entity_descriptions={ DeviceKey(key="occupancy", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="occupancy", device_id=None), device_class=BinarySensorDeviceClass.OCCUPANCY, ), DeviceKey(key="motion", device_id=None): BinarySensorDescription( device_key=DeviceKey(key="motion", device_id=None), device_class=BinarySensorDeviceClass.MOTION, ), }, binary_entity_values={ DeviceKey(key="occupancy", device_id=None): BinarySensorValue( device_key=DeviceKey(key="occupancy", device_id=None), name="Occupancy", native_value=False, ), DeviceKey(key="motion", device_id=None): BinarySensorValue( device_key=DeviceKey(key="motion", device_id=None), name="Motion", native_value=False, ), }, events={}, )