Skip to content

Commit c47cecf

Browse files
Update SQLAlchemy to 2.0.49 (#168260)
1 parent e31f611 commit c47cecf

9 files changed

Lines changed: 13 additions & 13 deletions

File tree

homeassistant/components/recorder/db_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def result_processor(self, dialect: Dialect, coltype: Any) -> Callable | None:
192192
# For MariaDB and MySQL we can use an unsigned integer type since it will fit 2**32
193193
# for sqlite and postgresql we use a bigint
194194
UINT_32_TYPE = BigInteger().with_variant(
195-
mysql.INTEGER(unsigned=True), # type: ignore[no-untyped-call]
195+
mysql.INTEGER(unsigned=True),
196196
"mysql",
197197
"mariadb",
198198
)
@@ -206,12 +206,12 @@ def result_processor(self, dialect: Dialect, coltype: Any) -> Callable | None:
206206
)
207207
DATETIME_TYPE = (
208208
DateTime(timezone=True)
209-
.with_variant(mysql.DATETIME(timezone=True, fsp=6), "mysql", "mariadb") # type: ignore[no-untyped-call]
209+
.with_variant(mysql.DATETIME(timezone=True, fsp=6), "mysql", "mariadb")
210210
.with_variant(FAST_PYSQLITE_DATETIME(), "sqlite") # type: ignore[no-untyped-call]
211211
)
212212
DOUBLE_TYPE = (
213213
Float()
214-
.with_variant(mysql.DOUBLE(asdecimal=False), "mysql", "mariadb") # type: ignore[no-untyped-call]
214+
.with_variant(mysql.DOUBLE(asdecimal=False), "mysql", "mariadb")
215215
.with_variant(oracle.DOUBLE_PRECISION(), "oracle")
216216
.with_variant(postgresql.DOUBLE_PRECISION(), "postgresql")
217217
)

homeassistant/components/recorder/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"iot_class": "local_push",
88
"quality_scale": "internal",
99
"requirements": [
10-
"SQLAlchemy==2.0.41",
10+
"SQLAlchemy==2.0.49",
1111
"fnv-hash-fast==2.0.0",
1212
"psutil-home-assistant==0.0.1"
1313
]

homeassistant/components/recorder/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ def setup_connection_for_dialect(
447447
slow_dependent_subquery = False
448448
if dialect_name == SupportedDialect.SQLITE:
449449
if first_connection:
450-
old_isolation = dbapi_connection.isolation_level # type: ignore[attr-defined]
451-
dbapi_connection.isolation_level = None # type: ignore[attr-defined]
450+
old_isolation = dbapi_connection.isolation_level
451+
dbapi_connection.isolation_level = None
452452
execute_on_connection(dbapi_connection, "PRAGMA journal_mode=WAL")
453-
dbapi_connection.isolation_level = old_isolation # type: ignore[attr-defined]
453+
dbapi_connection.isolation_level = old_isolation
454454
# WAL mode only needs to be setup once
455455
# instead of every time we open the sqlite connection
456456
# as its persistent and isn't free to call every time.

homeassistant/components/sql/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"config_flow": true,
77
"documentation": "https://www.home-assistant.io/integrations/sql",
88
"iot_class": "local_polling",
9-
"requirements": ["SQLAlchemy==2.0.41", "sqlparse==0.5.5"]
9+
"requirements": ["SQLAlchemy==2.0.49", "sqlparse==0.5.5"]
1010
}

homeassistant/package_constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PyTurboJPEG==1.8.0
6464
PyYAML==6.0.3
6565
requests==2.33.1
6666
securetar==2026.4.1
67-
SQLAlchemy==2.0.41
67+
SQLAlchemy==2.0.49
6868
standard-aifc==3.13.0
6969
standard-telnetlib==3.13.0
7070
typing-extensions>=4.15.0,<5.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ dependencies = [
6868
"PyYAML==6.0.3",
6969
"requests==2.33.1",
7070
"securetar==2026.4.1",
71-
"SQLAlchemy==2.0.41",
71+
"SQLAlchemy==2.0.49",
7272
"standard-aifc==3.13.0",
7373
"standard-telnetlib==3.13.0",
7474
"typing-extensions>=4.15.0,<5.0",

requirements.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)