Skip to content

Commit 39f7678

Browse files
Allow multiline post in Mastodon (home-assistant#157647)
1 parent e8acced commit 39f7678

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

homeassistant/components/mastodon/services.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ post:
99
required: true
1010
selector:
1111
text:
12+
multiline: true
1213
visibility:
1314
selector:
1415
select:

tests/components/mastodon/test_services.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@
118118
},
119119
),
120120
(
121-
{ATTR_STATUS: "test toot", ATTR_IDEMPOTENCY_KEY: "post_once_only"},
122121
{
123-
"status": "test toot",
122+
ATTR_STATUS: "test toot\nwith idempotency",
123+
ATTR_IDEMPOTENCY_KEY: "post_once_only",
124+
},
125+
{
126+
"status": "test toot\nwith idempotency",
124127
"idempotency_key": "post_once_only",
125128
"language": None,
126129
"spoiler_text": None,

0 commit comments

Comments
 (0)