From e7f89e3059192e8be82911b4776daf7326247e67 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 10 Apr 2023 16:56:27 -1000 Subject: [PATCH] remove unused --- homeassistant/components/recorder/history/modern.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/recorder/history/modern.py b/homeassistant/components/recorder/history/modern.py index fc7f65779fd..2fc7a816250 100644 --- a/homeassistant/components/recorder/history/modern.py +++ b/homeassistant/components/recorder/history/modern.py @@ -51,16 +51,15 @@ _FIELD_MAP = { "metadata_id": 0, "state": 1, "last_updated_ts": 2, - "last_changed_ts": 3, - "attributes": 4, - "shared_attrs": 5, } CASTABLE_DOUBLE_TYPE = ( - # sqlalchemy.exc.SAWarning: Datatype DOUBLE does not support CAST on MySQL/MariaDb; the CAST will be skipped. # MySQL/MariaDB < 10.4+ does not support casting to DOUBLE so we have to use Integer instead but it doesn't # matter because we don't use the value as its always set to NULL + # + # sqlalchemy.exc.SAWarning: Datatype DOUBLE does not support CAST on MySQL/MariaDb; the CAST will be skipped. + # Integer().with_variant(postgresql.DOUBLE_PRECISION(), "postgresql") )