File tree Expand file tree Collapse file tree 2 files changed +31
-16
lines changed
homeassistant/components/ntfy Expand file tree Collapse file tree 2 files changed +31
-16
lines changed Original file line number Diff line number Diff line change @@ -97,22 +97,19 @@ publish:
9797 label_field : " label"
9898 description_field : " url"
9999 multiple : true
100+ translation_key : view
100101 fields :
101102 label :
102- label : Label
103103 selector :
104104 text :
105105 url :
106- label : URL
107106 selector :
108107 text :
109108 type : url
110109 clear :
111- label : Clear
112110 selector :
113111 boolean :
114112 position :
115- label : Position
116113 selector :
117114 select :
118115 options :
@@ -126,25 +123,21 @@ publish:
126123 label_field : " label"
127124 description_field : " intent"
128125 multiple : true
126+ translation_key : broadcast
129127 fields :
130128 label :
131- label : Label
132129 selector :
133130 text :
134131 intent :
135- label : Android intent
136132 selector :
137133 text :
138134 extras :
139- label : Intent extras
140135 selector :
141136 object :
142137 clear :
143- label : Clear
144138 selector :
145139 boolean :
146140 position :
147- label : Position
148141 selector :
149142 select :
150143 options :
@@ -158,18 +151,16 @@ publish:
158151 label_field : " label"
159152 description_field : " url"
160153 multiple : true
154+ translation_key : http
161155 fields :
162156 label :
163- label : Label
164157 selector :
165158 text :
166159 url :
167- label : URL
168160 selector :
169161 text :
170162 type : url
171163 method :
172- label : HTTP method
173164 selector :
174165 select :
175166 options :
@@ -179,20 +170,16 @@ publish:
179170 - DELETE
180171 custom_value : true
181172 headers :
182- label : HTTP headers
183173 selector :
184174 object :
185175 body :
186- label : HTTP body
187176 selector :
188177 text :
189178 multiline : true
190179 clear :
191- label : Clear
192180 selector :
193181 boolean :
194182 position :
195- label : Position
196183 selector :
197184 select :
198185 options :
Original file line number Diff line number Diff line change 357357 "4" : " [%key:common::state::high%]" ,
358358 "5" : " Maximum"
359359 }
360+ },
361+ "view" : {
362+ "fields" : {
363+ "label" : " Label of the action button" ,
364+ "url" : " URL to open when action is tapped" ,
365+ "clear" : " Clear notification after action button is tapped" ,
366+ "position" : " Position of the action button"
367+ }
368+ },
369+ "broadcast" : {
370+ "fields" : {
371+ "label" : " [%key:component::ntfy::selector::view::fields::label%]" ,
372+ "intent" : " Android intent to send when action is tapped" ,
373+ "extras" : " Extras to include in the intent (key-value pairs)" ,
374+ "clear" : " [%key:component::ntfy::selector::view::fields::clear%]" ,
375+ "position" : " [%key:component::ntfy::selector::view::fields::position%]"
376+ }
377+ },
378+ "http" : {
379+ "fields" : {
380+ "label" : " [%key:component::ntfy::selector::view::fields::label%]" ,
381+ "url" : " URL to which the HTTP request will be sent" ,
382+ "method" : " HTTP method to use for request" ,
383+ "headers" : " Additional HTTP headers (key-value pairs)" ,
384+ "body" : " Body of the HTTP request" ,
385+ "clear" : " [%key:component::ntfy::selector::view::fields::clear%]" ,
386+ "position" : " [%key:component::ntfy::selector::view::fields::position%]"
387+ }
360388 }
361389 }
362390}
You can’t perform that action at this time.
0 commit comments