mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
Fix typo in Camera.turn_on (#119386)
This commit is contained in:
@@ -698,11 +698,11 @@ class Camera(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
|
|||||||
await self.hass.async_add_executor_job(self.turn_off)
|
await self.hass.async_add_executor_job(self.turn_off)
|
||||||
|
|
||||||
def turn_on(self) -> None:
|
def turn_on(self) -> None:
|
||||||
"""Turn off camera."""
|
"""Turn on camera."""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
async def async_turn_on(self) -> None:
|
async def async_turn_on(self) -> None:
|
||||||
"""Turn off camera."""
|
"""Turn on camera."""
|
||||||
await self.hass.async_add_executor_job(self.turn_on)
|
await self.hass.async_add_executor_job(self.turn_on)
|
||||||
|
|
||||||
def enable_motion_detection(self) -> None:
|
def enable_motion_detection(self) -> None:
|
||||||
|
Reference in New Issue
Block a user