1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

add define __str__ method (#4576)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Fabian
2023-03-19 19:55:12 +01:00
committed by GitHub
parent 48ada2eebb
commit 7196fb8e82

View File

@@ -409,6 +409,9 @@ class Define:
return self.as_tuple == other.as_tuple
return NotImplemented
def __str__(self):
return f"{self.name}={self.value}"
class Library:
def __init__(self, name, version, repository=None):