Module reference¶
main¶
-
class
CoffeeMachine(api=None, *args, **kwargs)[source]¶ Bases:
flask_restplus.resource.ResourceSet and get power status for the coffee machine.
-
endpoint= 'senseo_coffee_machine'¶
-
mediatypes()¶
-
methods= {'GET', 'POST'}¶
-
pisenseo¶
-
exception
SenseoPreconditionError(message: str)[source]¶ Bases:
ExceptionDefine a specific error for non-readyness coffee machine.
-
exception
SenseoCoffeeSizeError(size)[source]¶ Bases:
ExceptionDefine a specific error for invalid coffee size.
-
class
SenseoClassic(config_file: str)[source]¶ Bases:
objectDefine the setup and methods for the Senseo Classic.
May works on other kind of Senseo machine but not tested.
-
is_led_on()[source]¶ Return a boolean according to the current led status.
Returns: led powered status Return type: Boolean
-
is_ready()[source]¶ Is the Senseo heat enough?
Returns: Heat status of the Senseo Return type: Boolean
-