def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
    """Handle an options update."""
    await hass.config_entries.async_reload(entry.entry_id)