You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update docs to reflect new asynchronous client functionality
Comprehensively overhaul documentation to document the new async API:
- Add AsyncSignalRGBClient reference to client API docs
- Update models documentation with new response types
- Create detailed async_usage.md guide with examples
- Modernize UI with emojis and better section organization
- Add Home Assistant integration examples
- Update code samples with both sync and async patterns
- Improve installation instructions for async requirements
- Update CLI documentation with new commands
This documentation update complements the recent async API
addition, providing clear guidance for both synchronous and
asynchronous usage patterns.
Copy file name to clipboardExpand all lines: docs/api/client.md
+51-8Lines changed: 51 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# SignalRGB Client API Reference
2
2
3
-
This page provides detailed API documentation for the `SignalRGBClient` class, which is the main interface for interacting with the SignalRGB API.
3
+
This page provides detailed API documentation for both the synchronous `SignalRGBClient` class and the asynchronous `AsyncSignalRGBClient` class, which are the main interfaces for interacting with the SignalRGB API.
4
4
5
5
## SignalRGBClient
6
6
@@ -9,33 +9,40 @@ This page provides detailed API documentation for the `SignalRGBClient` class, w
9
9
show_root_heading: true
10
10
show_source: true
11
11
12
+
## AsyncSignalRGBClient
13
+
14
+
::: signalrgb.async_client.AsyncSignalRGBClient
15
+
options:
16
+
show_root_heading: true
17
+
show_source: true
18
+
12
19
## Exceptions
13
20
14
21
The SignalRGB client defines several custom exceptions for error handling:
15
22
16
-
::: signalrgb.client.SignalRGBException
23
+
::: signalrgb.exceptions.SignalRGBException
17
24
options:
18
25
show_root_heading: true
19
26
show_source: true
20
27
21
-
::: signalrgb.client.ConnectionError
28
+
::: signalrgb.exceptions.ConnectionError
22
29
options:
23
30
show_root_heading: true
24
31
show_source: true
25
32
26
-
::: signalrgb.client.APIError
33
+
::: signalrgb.exceptions.APIError
27
34
options:
28
35
show_root_heading: true
29
36
show_source: true
30
37
31
-
::: signalrgb.client.NotFoundError
38
+
::: signalrgb.exceptions.NotFoundError
32
39
options:
33
40
show_root_heading: true
34
41
show_source: true
35
42
36
-
## Usage Example
43
+
## Usage Examples
37
44
38
-
Here's a basic example of how to use the SignalRGBClient:
This page provides detailed API documentation for the data models used in the SignalRGB Python client. These models represent various data structures used in the SignalRGB API, including effects, responses, and error information.
4
4
5
-
## Attributes
5
+
## 🔍 Core Models
6
+
7
+
### Attributes
6
8
7
9
::: signalrgb.model.Attributes
8
10
options:
9
11
show_root_heading: true
10
12
show_source: true
11
13
12
-
## Links
14
+
###Links
13
15
14
16
::: signalrgb.model.Links
15
17
options:
16
18
show_root_heading: true
17
19
show_source: true
18
20
19
-
## Effect
21
+
###Effect
20
22
21
23
::: signalrgb.model.Effect
22
24
options:
23
25
show_root_heading: true
24
26
show_source: true
25
27
26
-
## EffectList
28
+
###EffectList
27
29
28
30
::: signalrgb.model.EffectList
29
31
options:
30
32
show_root_heading: true
31
33
show_source: true
32
34
33
-
## Error
35
+
## 🛠️ State Models
36
+
37
+
### CurrentState
38
+
39
+
::: signalrgb.model.CurrentState
40
+
options:
41
+
show_root_heading: true
42
+
show_source: true
43
+
44
+
### CurrentStateHolder
45
+
46
+
::: signalrgb.model.CurrentStateHolder
47
+
options:
48
+
show_root_heading: true
49
+
show_source: true
50
+
51
+
## 📐 Layout Models
52
+
53
+
### Layout
54
+
55
+
::: signalrgb.model.Layout
56
+
options:
57
+
show_root_heading: true
58
+
show_source: true
59
+
60
+
### LayoutList
61
+
62
+
::: signalrgb.model.LayoutList
63
+
options:
64
+
show_root_heading: true
65
+
show_source: true
66
+
67
+
### CurrentLayoutHolder
68
+
69
+
::: signalrgb.model.CurrentLayoutHolder
70
+
options:
71
+
show_root_heading: true
72
+
show_source: true
73
+
74
+
## 💾 Preset Models
75
+
76
+
### EffectPreset
77
+
78
+
::: signalrgb.model.EffectPreset
79
+
options:
80
+
show_root_heading: true
81
+
show_source: true
82
+
83
+
### EffectPresetList
84
+
85
+
::: signalrgb.model.EffectPresetList
86
+
options:
87
+
show_root_heading: true
88
+
show_source: true
89
+
90
+
## ⚠️ Error Models
91
+
92
+
### Error
34
93
35
94
::: signalrgb.model.Error
36
95
options:
37
96
show_root_heading: true
38
97
show_source: true
39
98
40
-
## SignalRGBResponse
99
+
## 🔄 Response Models
100
+
101
+
### SignalRGBResponse
41
102
42
103
::: signalrgb.model.SignalRGBResponse
43
104
options:
44
105
show_root_heading: true
45
106
show_source: true
46
107
47
-
## EffectDetailsResponse
108
+
###EffectDetailsResponse
48
109
49
110
::: signalrgb.model.EffectDetailsResponse
50
111
options:
51
112
show_root_heading: true
52
113
show_source: true
53
114
54
-
## EffectListResponse
115
+
###EffectListResponse
55
116
56
117
::: signalrgb.model.EffectListResponse
57
118
options:
58
119
show_root_heading: true
59
120
show_source: true
60
121
61
-
## Usage Example
122
+
### CurrentStateResponse
123
+
124
+
::: signalrgb.model.CurrentStateResponse
125
+
options:
126
+
show_root_heading: true
127
+
show_source: true
128
+
129
+
### LayoutListResponse
130
+
131
+
::: signalrgb.model.LayoutListResponse
132
+
options:
133
+
show_root_heading: true
134
+
show_source: true
135
+
136
+
### CurrentLayoutResponse
137
+
138
+
::: signalrgb.model.CurrentLayoutResponse
139
+
options:
140
+
show_root_heading: true
141
+
show_source: true
142
+
143
+
### EffectPresetListResponse
144
+
145
+
::: signalrgb.model.EffectPresetListResponse
146
+
options:
147
+
show_root_heading: true
148
+
show_source: true
149
+
150
+
### EffectPresetResponse
151
+
152
+
::: signalrgb.model.EffectPresetResponse
153
+
options:
154
+
show_root_heading: true
155
+
show_source: true
156
+
157
+
## 💡 Usage Example
62
158
63
159
Here's a basic example of how to work with these models:
0 commit comments