mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
add define __str__
method (#4576)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
parent
48ada2eebb
commit
7196fb8e82
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue