We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f9681 commit 42930bbCopy full SHA for 42930bb
homeassistant/components/sql/util.py
@@ -2,7 +2,7 @@
2
3
from __future__ import annotations
4
5
-from datetime import date, datetime
+from datetime import date
6
from decimal import Decimal
7
import logging
8
from typing import Any
@@ -233,7 +233,7 @@ def convert_value(value: Any) -> Any:
233
match value:
234
case Decimal():
235
return float(value)
236
- case date() | datetime():
+ case date():
237
return value.isoformat()
238
case bytes() | bytearray():
239
return f"0x{value.hex()}"
0 commit comments