From 0ddd9bae0525ec0683cc37c452ec44ed64002dbc Mon Sep 17 00:00:00 2001 From: functionpointer Date: Wed, 27 Jan 2021 01:36:31 +0100 Subject: [PATCH] MySensors: Use json persistence files by default --- homeassistant/components/mysensors/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/mysensors/gateway.py b/homeassistant/components/mysensors/gateway.py index feba73d0338..ac92ddabac2 100644 --- a/homeassistant/components/mysensors/gateway.py +++ b/homeassistant/components/mysensors/gateway.py @@ -141,7 +141,7 @@ async def _get_gateway( raise ValueError( "no unique id! either give configEntry for auto-extraction or explicitly give one" ) - persistence_file = data.get(CONF_PERSISTENCE_FILE, f"mysensors_{unique_id}.pickle") + persistence_file = data.get(CONF_PERSISTENCE_FILE, f"mysensors_{unique_id}.json") # interpret relative paths to be in hass config folder. absolute paths will be left as they are persistence_file = hass.config.path(persistence_file) version = data.get(CONF_VERSION)