Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/volpi.py: 0%
11 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from daiquiri.core.hardware.abstract.light import Light as AbstractLight, LightStates
4from daiquiri.core.hardware.bliss.object import BlissObject
5from daiquiri.core.hardware.abstract import HardwareProperty
7import logging
9logger = logging.getLogger(__name__)
12class Volpi(BlissObject, AbstractLight):
13 def _get_state(self):
14 return LightStates[0]
16 def _get_temperature(self):
17 return 0
19 PROPERTY_MAP = {
20 "intensity": HardwareProperty("intensity"),
21 "state": HardwareProperty("state", getter=_get_state),
22 "temperature": HardwareProperty("temperature", getter=_get_temperature),
23 }