From 9eb1192c9b98f46f02cd936a1b648c331d492467 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 17:29:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/check-lint.yml | 2 +- .github/workflows/hassfest.yaml | 4 +-- .github/workflows/release.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 19 ++++++------- custom_components/bbox/strings.json | 31 ++++++++++----------- custom_components/bbox/translations/en.json | 31 ++++++++++----------- custom_components/bbox/translations/fr.json | 31 ++++++++++----------- hacs.json | 8 +++--- 9 files changed, 63 insertions(+), 67 deletions(-) diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index 9f1996b..4269cd3 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -39,4 +39,4 @@ jobs: # stop the build if there are Pylint errors # there is a bug with E1136 (https://github.com/PyCQA/pylint/issues/1498) # so we temporarily disable it. - pylint --disable=I,C,R,E0401 --extension-pkg-whitelist=numpy custom_components \ No newline at end of file + pylint --disable=I,C,R,E0401 --extension-pkg-whitelist=numpy custom_components diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml index cee049b..3c65c1a 100644 --- a/.github/workflows/hassfest.yaml +++ b/.github/workflows/hassfest.yaml @@ -8,5 +8,5 @@ jobs: validate: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v4" - - uses: "home-assistant/actions/hassfest@master" + - uses: "actions/checkout@v4" + - uses: "home-assistant/actions/hassfest@master" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce20d6a..12acb65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: release: runs-on: ubuntu-latest permissions: - contents: write + contents: write steps: - name: Checkout uses: actions/checkout@v4 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index db2fd34..9b723d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ Pull requests are the best way to propose changes to the codebase. 2. If you've changed something, update the documentation. 3. Issue a pull request -By contributing, you agree that your contributions will be licensed under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. +By contributing, you agree that your contributions will be licensed under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. ## Coding Style diff --git a/README.md b/README.md index f593856..256c7e3 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,16 @@ - # Bouygues Bbox Router -This a *custom component* for [Home Assistant](https://www.home-assistant.io/). +This a _custom component_ for [Home Assistant](https://www.home-assistant.io/). The `bbox2` integration allows you to observe and control [Bbox router](http://www.bouygues.fr/). There is currently support for the following device types within Home Assistant: -* Sensor with traffic metrics -* Binary Sensor with wan status , public ip , private ip -* Device tracker for connected devices (via option add wired devices) -* Switch for enable/disable Wireless and Guest Wifi -* Press button to restart box -* Press button to ring phone +- Sensor with traffic metrics +- Binary Sensor with wan status , public ip , private ip +- Device tracker for connected devices (via option add wired devices) +- Switch for enable/disable Wireless and Guest Wifi +- Press button to restart box +- Press button to ring phone ![GitHub release](https://img.shields.io/github/release/Cyr-ius/hass-bbox2) [![hacs_badge](https://img.shields.io/badge/HACS-Default-bouygues.svg)](https://github.com/hacs/integration) @@ -30,7 +29,7 @@ Add your device via the Integration menu ### Initial setup -You must have set a password for your Bbox router web administration page. +You must have set a password for your Bbox router web administration page. The first time Home Assistant will connect to your Bbox, you will need to specify the password of bbox. @@ -38,7 +37,7 @@ The first time Home Assistant will connect to your Bbox, you will need to specif Only the routers with Bbox OS are supported: -* Bbox (all versions) +- Bbox (all versions) ## Presence Detection diff --git a/custom_components/bbox/strings.json b/custom_components/bbox/strings.json index b330ac2..0765d7c 100644 --- a/custom_components/bbox/strings.json +++ b/custom_components/bbox/strings.json @@ -1,21 +1,20 @@ { - "config": { - "step": { - "user": { - "title": "Bouygue Bbox registration", - "data": { - "host": "[%key:common::config_flow::data::host%]", - "password": "[%key:common::config_flow::data::password%]" - } + "config": { + "step": { + "user": { + "title": "Bouygue Bbox registration", + "data": { + "host": "[%key:common::config_flow::data::host%]", + "password": "[%key:common::config_flow::data::password%]" } - }, - "error": { - "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", - "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]" - }, - "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" } + }, + "error": { + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", + "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]" + }, + "abort": { + "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" } } - \ No newline at end of file +} diff --git a/custom_components/bbox/translations/en.json b/custom_components/bbox/translations/en.json index 5ce185a..c10af1c 100644 --- a/custom_components/bbox/translations/en.json +++ b/custom_components/bbox/translations/en.json @@ -1,21 +1,20 @@ { - "config": { - "step": { - "user": { - "title": "Bouygue Bbox registration", - "data": { - "host": "Host", - "password": "Password" - } + "config": { + "step": { + "user": { + "title": "Bouygue Bbox registration", + "data": { + "host": "Host", + "password": "Password" } - }, - "error": { - "cannot_connect": "Failed to connect", - "invalid_auth": "Invalid authentication" - }, - "abort": { - "already_configured": "Your account is already configured." } + }, + "error": { + "cannot_connect": "Failed to connect", + "invalid_auth": "Invalid authentication" + }, + "abort": { + "already_configured": "Your account is already configured." } } - \ No newline at end of file +} diff --git a/custom_components/bbox/translations/fr.json b/custom_components/bbox/translations/fr.json index 6e90acd..63ab2bf 100644 --- a/custom_components/bbox/translations/fr.json +++ b/custom_components/bbox/translations/fr.json @@ -1,21 +1,20 @@ { - "config": { - "step": { - "user": { - "title": "Enregistrement Bouygue Bbox", - "data": { - "host": "Url", - "password": "Mot de passe" - } + "config": { + "step": { + "user": { + "title": "Enregistrement Bouygue Bbox", + "data": { + "host": "Url", + "password": "Mot de passe" } - }, - "error": { - "cannot_connect": "Impossible de se connecter", - "invalid_auth": "Authentification incorrect" - }, - "abort": { - "already_configured": "Votre équipement est déjà configuré." } + }, + "error": { + "cannot_connect": "Impossible de se connecter", + "invalid_auth": "Authentification incorrect" + }, + "abort": { + "already_configured": "Votre équipement est déjà configuré." } } - \ No newline at end of file +} diff --git a/hacs.json b/hacs.json index 188ada7..d19a50d 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { - "name": "Bouygues Bbox", - "country": ["FR"], - "homeassistant": "0.110.0", - "render_readme": true + "name": "Bouygues Bbox", + "country": ["FR"], + "homeassistant": "0.110.0", + "render_readme": true }