mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-09-19 20:43:52 +00:00
Map iot timezone index 18 to America/New_York instead of EST (#1743)
Iot firmware timezone index 18 corresponds to "(UTC-05:00) Eastern Time (US & Canada)", which observes daylight saving time. Previously, this was mapped to a fixed UTC-5 (EST= causing one hour off for New York local times. Co-authored-by: monteccarlos <vld@noise.xyz> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ def test_expected_dst_behavior_for_index_cases() -> None:
|
||||
assert _expected_dst_behavior_for_index(13) is True # CST6CDT
|
||||
# Fixed-offset or fixed-abbreviation zones
|
||||
assert _expected_dst_behavior_for_index(34) is False # Etc/GMT+2
|
||||
assert _expected_dst_behavior_for_index(18) is False # EST
|
||||
assert _expected_dst_behavior_for_index(18) is None # America/New_York
|
||||
# Invalid index should raise KeyError
|
||||
with pytest.raises(KeyError):
|
||||
_expected_dst_behavior_for_index(999)
|
||||
|
||||
Reference in New Issue
Block a user