Skip to content

Instantly share code, notes, and snippets.

@luuuis
luuuis / configuration.yml
Last active February 18, 2023 18:36
Preços do mercado diário e do mecanismo de ajuste MIBEL
homeassistant:
customize:
sensor.omie_daily_spot_pt:
device_class: monetary
state_class: measurement
sensor.omie_daily_ajuste_pt:
device_class: monetary
state_class: measurement
sensor:
@luuuis
luuuis / pre-commit.sh
Last active September 19, 2021 16:18 — forked from dahjelle/pre-commit.sh
Pre-commit hook for eslint, linting *only* staged changes.
#!/usr/bin/env bash
set -uo pipefail
IFS=$'\n\t'
#
# Improvements from dahjelle/pre-commit.sh:
# - does not lint deleted files,
# - lints all staged files before exiting with an error code,
# - handles spaces and other unusual chars in file names.
#