mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
add define __str__
method (#4576)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
parent
48ada2eebb
commit
7196fb8e82
@ -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…
x
Reference in New Issue
Block a user