Add bimonthly period feature for utility_meter component (#39931)
This commit is contained in:
1 parent
56ba4907e1
commit
c8d5500441
3 files changed
+27
-2
No files matched your search
@@ -288,6 +288,23 @@ async def test_self_reset_monthly(hass, legacy_patchable_time):
|
||||
)
|
||||
|
||||
|
||||
async def test_self_reset_bimonthly(hass, legacy_patchable_time):
|
||||
"""Test bimonthly reset of meter occurs on even months."""
|
||||
await _test_self_reset(
|
||||
hass, gen_config("bimonthly"), "2017-12-31T23:59:00.000000+00:00"
|
||||
)
|
||||
|
||||
|
||||
async def test_self_no_reset_bimonthly(hass, legacy_patchable_time):
|
||||
"""Test bimonthly reset of meter does not occur on odd months."""
|
||||
await _test_self_reset(
|
||||
hass,
|
||||
gen_config("bimonthly"),
|
||||
"2018-01-01T23:59:00.000000+00:00",
|
||||
expect_reset=False,
|
||||
)
|
||||
|
||||
|
||||
async def test_self_reset_quarterly(hass, legacy_patchable_time):
|
||||
"""Test quarterly reset of meter."""
|
||||
await _test_self_reset(
|
||||
|
||||
Reference in new issue
Block a user