mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix Google Sheets formula input (#82157)
This commit is contained in:
parent
ae7272575a
commit
21b32804d1
@ -7,6 +7,7 @@ import aiohttp
|
|||||||
from google.auth.exceptions import RefreshError
|
from google.auth.exceptions import RefreshError
|
||||||
from google.oauth2.credentials import Credentials
|
from google.oauth2.credentials import Credentials
|
||||||
from gspread import Client
|
from gspread import Client
|
||||||
|
from gspread.utils import ValueInputOption
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
||||||
@ -100,7 +101,7 @@ async def async_setup_service(hass: HomeAssistant) -> None:
|
|||||||
columns.append(key)
|
columns.append(key)
|
||||||
worksheet.update_cell(1, len(columns), key)
|
worksheet.update_cell(1, len(columns), key)
|
||||||
row.append(value)
|
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:
|
async def append_to_sheet(call: ServiceCall) -> None:
|
||||||
"""Append new line of data to a Google Sheets document."""
|
"""Append new line of data to a Google Sheets document."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user