diff --git a/esphome/core/__init__.py b/esphome/core/__init__.py index 117b19a6ae..1866f9c9f5 100644 --- a/esphome/core/__init__.py +++ b/esphome/core/__init__.py @@ -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):