Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent f2a7c30 commit 9eb1192
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pylint --disable=I,C,R,E0401 --extension-pkg-whitelist=numpy custom_components
4 changes: 2 additions & 2 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -30,15 +29,15 @@ 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.

### Supported routers

Only the routers with Bbox OS are supported:

* Bbox (all versions)
- Bbox (all versions)

## Presence Detection

Expand Down
31 changes: 15 additions & 16 deletions custom_components/bbox/strings.json
Original file line number Diff line number Diff line change
@@ -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%]"
}
}
}
31 changes: 15 additions & 16 deletions custom_components/bbox/translations/en.json
Original file line number Diff line number Diff line change
@@ -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."
}
}
}
31 changes: 15 additions & 16 deletions custom_components/bbox/translations/fr.json
Original file line number Diff line number Diff line change
@@ -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é."
}
}
}
8 changes: 4 additions & 4 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 9eb1192

Please sign in to comment.