mirror of
https://github.com/elisspace/core.git
synced 2026-10-07 01:36:40 +00:00
Fix allday events in custom_calendars (#11272)
This commit is contained in:
committed by
Martin Hjelmare
parent
295caeb065
commit
46df91ff45
@@ -121,8 +121,10 @@ class TestComponentsWebDavCalendar(unittest.TestCase):
|
||||
assert len(devices) == 2
|
||||
assert devices[0].name == "First"
|
||||
assert devices[0].dev_id == "First"
|
||||
self.assertFalse(devices[0].data.include_all_day)
|
||||
assert devices[1].name == "Second"
|
||||
assert devices[1].dev_id == "Second"
|
||||
self.assertFalse(devices[1].data.include_all_day)
|
||||
|
||||
caldav.setup_platform(self.hass,
|
||||
{
|
||||
@@ -167,6 +169,7 @@ class TestComponentsWebDavCalendar(unittest.TestCase):
|
||||
assert len(devices) == 1
|
||||
assert devices[0].name == "HomeOffice"
|
||||
assert devices[0].dev_id == "Second HomeOffice"
|
||||
self.assertTrue(devices[0].data.include_all_day)
|
||||
|
||||
caldav.setup_platform(self.hass,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user