mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 23:52:28 +01:00
Unittests for esphome python code (#931)
This commit is contained in:
@@ -143,6 +143,9 @@ class TimePeriod:
|
||||
return f'{self.total_days}d'
|
||||
return '0s'
|
||||
|
||||
def __repr__(self):
|
||||
return f"TimePeriod<{self.total_microseconds}>"
|
||||
|
||||
@property
|
||||
def total_microseconds(self):
|
||||
return self.total_milliseconds * 1000 + (self.microseconds or 0)
|
||||
|
Reference in New Issue
Block a user