Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/google_sheets/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _append_to_sheet(call: ServiceCall, entry: GoogleSheetsConfigEntry) -> None:
raise HomeAssistantError("Failed to write data") from ex

worksheet = sheet.worksheet(call.data.get(WORKSHEET, sheet.sheet1.title))
columns: list[str] = next(iter(worksheet.get_values("A1:ZZ1")), [])
columns: list[str] = next(iter(worksheet.get_values("1:1")), [])
Comment thread
luca-angemi marked this conversation as resolved.
add_created_column = call.data[ADD_CREATED_COLUMN]
now = str(dt_util.now())
rows = []
Expand Down
1 change: 1 addition & 0 deletions tests/components/google_sheets/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ async def test_append_sheet_created_column_uses_configured_time_zone(

rows_data = mock_worksheet.append_rows.call_args[0][0]
assert rows_data[0] == ["bar", "2024-01-15 23:30:45.123456+11:00"]
mock_worksheet.get_values.assert_called_once_with("1:1")


async def test_get_sheet(
Expand Down
Loading