This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# To install it just enter in project: | |
# if [ -d .git/hooks ]; then HOOKF=.git/hooks/prepare-commit-msg && if [ ! -f $HOOKF ]; then curl -s https://gist.githubusercontent.com/AdamStrojek/c3ad92916acec6963e0a198cc9d14946/raw > $HOOKF && chmod 755 $HOOKF; else echo "Error: $HOOKF exists"; fi else echo "Error: Not a git repo"; fi | |
COMMIT_FILE=$1 | |
COMMIT_MSG=$(cat $1) | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
JIRA_ID=$(echo "$CURRENT_BRANCH" | grep -Eo "[A-Z0-9]{1,10}-?[A-Z0-9]+-\d+") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import voluptuous as vol | |
# Import the device class from the component that you want to support | |
from homeassistant.components.light import ( | |
ATTR_BRIGHTNESS, Light, PLATFORM_SCHEMA, SUPPORT_BRIGHTNESS) | |
from homeassistant.const import CONF_HOST, CONF_NAME | |
import homeassistant.helpers.config_validation as cv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
device_tracker: | |
- platform: mqtt | |
devices: | |
adam: 'blescan/presence/adamkeys' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for TPLink HS100/HS110/HS200 smart switch. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/switch.tplink/ | |
""" | |
import logging | |
import time | |
import voluptuous as vol |