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
+8 -4
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.