From 452348a7f9c449543623da9e6724da60a46b6882 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 10 Dec 2015 18:13:06 -0800 Subject: [PATCH] Update default MySensor persistence file path --- homeassistant/components/sensor/mysensors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/mysensors.py b/homeassistant/components/sensor/mysensors.py index 7c8fbc47e2a..fb61173d8ee 100644 --- a/homeassistant/components/sensor/mysensors.py +++ b/homeassistant/components/sensor/mysensors.py @@ -76,7 +76,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None): return False persistence = config.get(CONF_PERSISTENCE, True) - persistence_file = config.get(CONF_PERSISTENCE_FILE, 'mysensors.pickle') + persistence_file = config.get(CONF_PERSISTENCE_FILE, + hass.config.path('mysensors.pickle')) version = config.get(CONF_VERSION, '1.4') gateway = mysensors.SerialGateway(port, sensor_update,