1 """Constants for 1-Wire component."""
3 from __future__
import annotations
7 DEFAULT_HOST =
"localhost"
12 DEVICE_KEYS_0_3 = range(4)
13 DEVICE_KEYS_0_7 = range(8)
14 DEVICE_KEYS_A_B = (
"A",
"B")
30 "7E": (
"EDS0066",
"EDS0068"),
32 "EF": (
"HB_HUB",
"HB_MOISTURE_METER",
"HobbyBoards_EF"),
35 DEVICE_SUPPORT_OPTIONS = [
"28"]
37 PRECISION_MAPPING_FAMILY_28 = {
38 "temperature":
"Default",
39 "temperature9":
"9 Bits",
40 "temperature10":
"10 Bits",
41 "temperature11":
"11 Bits",
42 "temperature12":
"12 Bits",
45 OPTION_ENTRY_DEVICE_OPTIONS =
"device_options"
46 OPTION_ENTRY_SENSOR_PRECISION =
"precision"
47 INPUT_ENTRY_CLEAR_OPTIONS =
"clear_device_options"
48 INPUT_ENTRY_DEVICE_SELECTION =
"device_selection"
50 MANUFACTURER_MAXIM =
"Maxim Integrated"
51 MANUFACTURER_HOBBYBOARDS =
"Hobby Boards"
52 MANUFACTURER_EDS =
"Embedded Data Systems"
54 READ_MODE_BOOL =
"bool"
55 READ_MODE_FLOAT =
"float"
59 Platform.BINARY_SENSOR,