Add a Make target for testing the configuration

This commit is contained in:
Correl Roush 2018-05-17 13:26:35 -04:00
parent 1435df5eb7
commit 5729eac7ac
1 changed files with 11 additions and 0 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
IMAGE = homeassistant/home-assistant
HASS_BIN = python -m homeassistant
VOLUMES = $(PWD):/config /etc/localtime:/etc/localtime:ro
HASS = docker run -it --rm \
$(addprefix -v ,$(VOLUMES)) \
$(IMAGE) $(HASS_BIN) \
--config /config
.PHONY: test
test:
@$(HASS) --script check_config --files