Add and apply prettier pre-commit hook

This commit is contained in:
Max Winterstein
2021-09-18 22:12:17 +02:00
parent 50c2e44b7f
commit 2b6ff89517
23 changed files with 197 additions and 147 deletions

View File

@@ -1,96 +1,123 @@
# Changelog
## [1.23.0] - 2021-09-18
- Update `eufy-ha-mqtt-bridge` to `0.2.23` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.22.0] - 2021-09-13
- Update `eufy-ha-mqtt-bridge` to `0.2.22` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.21.0] - 2021-07-31
- Update `eufy-ha-mqtt-bridge` to `0.2.21` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.20.0] - 2021-07-07
- Update `eufy-ha-mqtt-bridge` to `0.2.20` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.19.0] - 2021-07-06
- Update `eufy-ha-mqtt-bridge` to `0.2.19` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
- Update baseimage to `7.0.2`
## [1.18.0] - 2021-04-23
- Update `eufy-ha-mqtt-bridge` to `0.2.18` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.17.0] - 2021-04-21
- Update `eufy-ha-mqtt-bridge` to `0.2.16` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.16.1] - 2021-04-21
- Fixed bug in configuration. (see [issue](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/62))
## [1.16.0] - 2021-04-20
- Update `eufy-ha-mqtt-bridge` to `0.2.15` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.15.0] - 2021-04-14
- Update `eufy-ha-mqtt-bridge` to `0.2.14` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.14.0] - 2021-04-08
- Update `eufy-ha-mqtt-bridge` to `0.2.13` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.13.0] - 2021-03-06
- Update `eufy-ha-mqtt-bridge` to `0.2.12` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.12.0] - 2021-03-06
- Introduce new `eval` options
- Do no longer store `/data` inside `share` folder
## [1.11.0] - 2021-02-15
- Update `eufy-ha-mqtt-bridge` to `0.2.11` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.10.0] - 2021-02-14
- Use Pre-build containers (no more unused docker images, yay).
**🚨 !!Important Update Notice!! 🚨**
The Update progress might fail when the installed version is <1.10.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually.
Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
## [1.9.0] - 2021-02-05
- Update `eufy-ha-mqtt-bridge` to `0.2.10` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
- Add new configration option `mqtt.keepalive`
## [1.8.0] - 2021-01-28
- Update `eufy-ha-mqtt-bridge` to `0.2.9` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.7.0] - 2021-01-27
- Update `eufy-ha-mqtt-bridge` to `0.2.8` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.6.0] - 2021-01-25
- Update `eufy-ha-mqtt-bridge` to `0.2.7` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.5.0] - 2021-01-25
- Update `eufy-ha-mqtt-bridge` to `0.2.6` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.4.0] - 2021-01-23
- Update `eufy-ha-mqtt-bridge` to `0.2.5` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.3.0] - 2021-01-22
- Update `eufy-ha-mqtt-bridge` to `0.2.4` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.2.0] - 2021-01-21
- Update `eufy-ha-mqtt-bridge` to `0.2.3` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.1.0] - 2021-01-11
- Update `eufy-ha-mqtt-bridge` to `0.2.1` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.0.0] - 2021-01-10
- Switch from `main` branch to releases from `eufy-ha-mqtt-bridge`
- Update `eufy-ha-mqtt-bridge` to `0.2.0` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [0.7.0] - 2021-01-05
- Moved to dockerhub located images
- Updated logo
## [0.6.0] - 2021-01-02
- Add `hassio_role` and `hassio_api` to config to prevent error message
## [0.5.0] - 2021-01-02
- Improve image recration by adding some cache buster
- Change to bashio logs
- Add `log_level` cofiguration option
@@ -98,17 +125,21 @@
- Add some build date information
## [0.4.0] - 2021-01-02
- Change base image to `hassioaddons/debian-base`
- Add icon (thx to [davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591]))
## [0.3.0] - 2020-12-31
- Change name from **eufy-ha-mqtt-bridge** to **Eufy Home Assistant MQTT Bridge**
## [0.2.0] - 2020-12-31
- Remove superflous `apt-get` part
- Added some 'do not edit' note to config.yml
- Added some note about the rebuild button
- Dirtypatched log level for console output
## [0.1.0] - 2020-12-31
- Initial release

View File

@@ -1,17 +1,19 @@
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
## Configuration
### `eval` (string)
Allows to pass some bash commands to run every time before the start of the bridge.
Multi-line commands are possible but must end with `;`. See examples below.
You might want to disable this after a run.
*Only use when you know what you are doing!*
_Only use when you know what you are doing!_
#### Example: Symlink data dir to `shares`
```yaml
eval: |
bashio::log.info "Symlinking data dir";
@@ -21,13 +23,15 @@ eval: |
```
#### Example: Copy logs to `shares`
```yaml
eval: cp -v /data/*.log /share;
```
Logs can now easily be accessed via e.g. _Visual Studio Code Add-on_.
#### Example: Export payloads to file
#### Example: Export payloads to file
To help adding more devices it is crucial to provide some information, see https://github.com/matijse/eufy-ha-mqtt-bridge/issues/7.
```yaml
@@ -36,4 +40,4 @@ eval: >
/share/export.csv
```
*Note:* Asterisk must be removed from the double quotes.
_Note:_ Asterisk must be removed from the double quotes.

View File

@@ -1,7 +1,9 @@
### 🚨 Important Information 🚨
* This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.10.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually.
* This is some experimental release!
- This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.10.0.
Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
- This is some experimental release!
---
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
@@ -16,10 +18,8 @@
**Based on https://github.com/matijse/eufy-ha-mqtt-bridge.**
## ♥
- [@matijse](https://github.com/matijse/) for coding this awesome bridge
- [@davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591]) for the awesome icon

View File

@@ -4,13 +4,7 @@
"slug": "eufy-ha-mqtt-bridge",
"image": "maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge-{arch}",
"description": "Publish events as MQTT messages",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "application",
"boot": "auto",
"options": {
@@ -23,7 +17,7 @@
"username": "homeassistant",
"password": "homeassistant",
"keepalive": 60
},
},
"home_assistant": {
"off_delay": 5
},
@@ -49,9 +43,7 @@
},
"stage": "experimental",
"url": "https://github.com/matijse/eufy-ha-mqtt-bridge/",
"map": [
"share:rw"
],
"map": ["share:rw"],
"hassio_role": "default",
"hassio_api": true
}