mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Raise in base implementation of FanEntity.oscillate (#43354)
This commit is contained in:
parent
390b45b149
commit
d61998e184
@ -144,6 +144,7 @@ class FanEntity(ToggleEntity):
|
|||||||
|
|
||||||
def oscillate(self, oscillating: bool) -> None:
|
def oscillate(self, oscillating: bool) -> None:
|
||||||
"""Oscillate the fan."""
|
"""Oscillate the fan."""
|
||||||
|
raise NotImplementedError()
|
||||||
|
|
||||||
async def async_oscillate(self, oscillating: bool):
|
async def async_oscillate(self, oscillating: bool):
|
||||||
"""Oscillate the fan."""
|
"""Oscillate the fan."""
|
||||||
|
@ -20,7 +20,8 @@ def test_fanentity():
|
|||||||
assert fan.supported_features == 0
|
assert fan.supported_features == 0
|
||||||
assert fan.capability_attributes == {}
|
assert fan.capability_attributes == {}
|
||||||
# Test set_speed not required
|
# Test set_speed not required
|
||||||
fan.oscillate(True)
|
with pytest.raises(NotImplementedError):
|
||||||
|
fan.oscillate(True)
|
||||||
with pytest.raises(NotImplementedError):
|
with pytest.raises(NotImplementedError):
|
||||||
fan.set_speed("slow")
|
fan.set_speed("slow")
|
||||||
with pytest.raises(NotImplementedError):
|
with pytest.raises(NotImplementedError):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user