Add backport of cached_property from CPython 3.12 (#95292)

This commit is contained in:
Erik Montnemery 2023-06-26 23:23:07 +02:00 committed by GitHub
parent b02cb56988
commit a568885ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 70 additions and 7 deletions

View file

@ -3,13 +3,13 @@ from __future__ import annotations
import dataclasses
from datetime import datetime
from functools import cached_property
import logging
from typing import Any, cast
from python_otbr_api import tlv_parser
from python_otbr_api.tlv_parser import MeshcopTLVType
from homeassistant.backports.functools import cached_property
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.singleton import singleton