1
0
mirror of https://github.com/esphome/esphome.git synced 2024-12-25 17:07:50 +01:00

Remove removesuffix

This commit is contained in:
Jesse Hills 2021-09-08 19:51:20 +12:00
parent f87a701b28
commit 4356581db0
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -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