mirror of https://github.com/esphome/esphome.git
Better representation of Extend and Remove
This commit is contained in:
parent
1b2d7d0067
commit
a5cccacf61
|
@ -8,6 +8,9 @@ class Extend:
|
|||
def __str__(self):
|
||||
return f"!extend {self.value}"
|
||||
|
||||
def __repr__(self):
|
||||
return f"Extend({self.value})"
|
||||
|
||||
def __eq__(self, b):
|
||||
"""
|
||||
Check if two Extend objects contain the same ID.
|
||||
|
@ -24,6 +27,9 @@ class Remove:
|
|||
def __str__(self):
|
||||
return f"!remove {self.value}"
|
||||
|
||||
def __repr__(self):
|
||||
return f"Remove({self.value})"
|
||||
|
||||
def __eq__(self, b):
|
||||
"""
|
||||
Check if two Remove objects contain the same ID.
|
||||
|
|
Loading…
Reference in New Issue