(hass, key, data)
Generate dynamic data to store and save it to the filesystem.

    The data is only written if the content on the disk has changed
    by reading the existing content and comparing it.

    If the data has changed this will generate two executor jobs

    If the data has not changed this will generate one executor job
Generate dynamic data to store and save it to the filesystem.
Generate dynamic data to store and save it to the filesystem .
async def async_save_to_store(hass, key, data):
    """Generate dynamic data to store and save it to the filesystem.

    The data is only written if the content on the disk has changed
    by reading the existing content and comparing it.

    If the data has changed this will generate two executor jobs

    If the data has not changed this will generate one executor job
    """
    current = await async_load_from_store(hass, key)
    if current is None or current != data:
        await get_store_for_key(hass, key).async_save(data)
        return
    _LOGGER.debug(
        "Did not store data for '%s'. Content did not change",
        get_store_key(key),
    )
async def async_save_to_store ( hass , key , data ) : current = await async_load_from_store ( hass , key ) if current is None or current != data : await get_store_for_key ( hass , key ) . async_save ( data ) return _LOGGER . debug ( "Did not store data for '%s'. Content did not change" , get_store_key ( key ) , )