First commit
This commit is contained in:
17
custom_components/daily/exceptions.py
Normal file
17
custom_components/daily/exceptions.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from homeassistant import exceptions
|
||||
|
||||
|
||||
class SensorNotFound(exceptions.HomeAssistantError):
|
||||
"""Error to indicate a sensor is not found."""
|
||||
|
||||
|
||||
class OperationNotFound(exceptions.HomeAssistantError):
|
||||
"""Error to indicate the operation specified is not valid."""
|
||||
|
||||
|
||||
class IntervalNotValid(exceptions.HomeAssistantError):
|
||||
"""Error to indicate the interval specified is not valid."""
|
||||
|
||||
|
||||
class NotUnique(exceptions.HomeAssistantError):
|
||||
"""Error to indicate that the name is not unique."""
|
||||
Reference in New Issue
Block a user