From 8b03c6a85777a7886337f8d18622ef3ec8369e9f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 19 Feb 2025 10:39:29 -0600 Subject: [PATCH] py39 --- esphome/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/frame.py b/esphome/frame.py index f3db9cbdc7..449a687d4a 100644 --- a/esphome/frame.py +++ b/esphome/frame.py @@ -8,7 +8,7 @@ import sys from types import FrameType -@dataclass(kw_only=True) +@dataclass() class ComponentFrame: """Component frame container.""" @@ -37,7 +37,7 @@ class ComponentFrame: def get_current_frame(depth: int = 0) -> FrameType: """Return the current frame.""" # Add one to depth since get_current_frame is included - return sys._getframe(depth + 1) # noqa: SLF001 + return sys._getframe(depth + 1) # pylint: disable=protected-access class MissingComponentFrame(Exception):