Coverage for src / bluetooth_sig / gatt / characteristics / day_of_week.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Day of Week characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from ...types.gatt_enums import DayOfWeek 

6from .base import BaseCharacteristic 

7from .templates import EnumTemplate 

8 

9 

10class DayOfWeekCharacteristic(BaseCharacteristic[DayOfWeek]): 

11 """Day of Week characteristic (0x2A09). 

12 

13 org.bluetooth.characteristic.day_of_week 

14 

15 Represents the day of the week as an 8-bit enumeration (1=Monday, 7=Sunday). 

16 """ 

17 

18 _template = EnumTemplate.uint8(DayOfWeek)