Skip to content

Commit 42930bb

Browse files
committed
Revert datetime addition to case
Signed-off-by: David Rapan <[email protected]>
1 parent f5f9681 commit 42930bb

File tree

1 file changed

+2
-2
lines changed
  • homeassistant/components/sql

1 file changed

+2
-2
lines changed

homeassistant/components/sql/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from datetime import date, datetime
5+
from datetime import date
66
from decimal import Decimal
77
import logging
88
from typing import Any
@@ -233,7 +233,7 @@ def convert_value(value: Any) -> Any:
233233
match value:
234234
case Decimal():
235235
return float(value)
236-
case date() | datetime():
236+
case date():
237237
return value.isoformat()
238238
case bytes() | bytearray():
239239
return f"0x{value.hex()}"

0 commit comments

Comments
 (0)