mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 13:34:07 +00:00
Use new ISO format for compilation_time in API DeviceInfo
Change the API's DeviceInfo response to use the new ISO 8601 format with timezone for compilation_time field by calling get_build_time_string() instead of get_compilation_time_ref(). Update the placeholder build_info_data.h to match the new format. Update integration test to expect the new format for compilation_time.
This commit is contained in:
@@ -26,7 +26,7 @@ async def test_build_info(
|
||||
assert device_info.name == "build-info-test"
|
||||
|
||||
# Verify compilation_time from device_info is present and parseable
|
||||
# The format is "Mon DD YYYY, HH:MM:SS" (e.g., "Dec 13 2024, 15:30:00")
|
||||
# The format is ISO 8601 with timezone: "YYYY-MM-DD HH:MM:SS +ZZZZ"
|
||||
compilation_time = device_info.compilation_time
|
||||
assert compilation_time is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user