home-assistant/Makefile

12 lines
292 B
Makefile
Raw Normal View History

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