From 4356581db0d0e11d34f194961d3b823de5b198bf Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 8 Sep 2021 19:51:20 +1200 Subject: [PATCH] Remove removesuffix --- esphome/dashboard/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index e44ee64770..97f9d60693 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -431,7 +431,7 @@ class DashboardEntry: @property def name(self): if self.storage is None: - return self.filename.removesuffix(".yml").removesuffix(".yaml") + return self.filename.replace(".yml", "").replace(".yaml", "") return self.storage.name @property