mirror of
https://github.com/esphome/esphome.git
synced 2024-11-16 10:45:48 +01:00
Remove removesuffix
This commit is contained in:
parent
f87a701b28
commit
4356581db0
@ -431,7 +431,7 @@ class DashboardEntry:
|
|||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
if self.storage is None:
|
if self.storage is None:
|
||||||
return self.filename.removesuffix(".yml").removesuffix(".yaml")
|
return self.filename.replace(".yml", "").replace(".yaml", "")
|
||||||
return self.storage.name
|
return self.storage.name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user