Fix Google Sheets formula input (#82157)

pull/82197/head
Robert Hillis 2022-11-15 17:07:43 -05:00 committed by Franck Nijhof
parent aade51248d
commit 83db9a3335
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import aiohttp
from google.auth.exceptions import RefreshError
from google.oauth2.credentials import Credentials
from gspread import Client
from gspread.utils import ValueInputOption
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
@ -100,7 +101,7 @@ async def async_setup_service(hass: HomeAssistant) -> None:
columns.append(key)
worksheet.update_cell(1, len(columns), key)
row.append(value)
worksheet.append_row(row)
worksheet.append_row(row, value_input_option=ValueInputOption.user_entered)
async def append_to_sheet(call: ServiceCall) -> None:
"""Append new line of data to a Google Sheets document."""