diff --git a/homeassistant/components/mastodon/services.yaml b/homeassistant/components/mastodon/services.yaml index dd153fd7c02..1c0dfa7e836 100644 --- a/homeassistant/components/mastodon/services.yaml +++ b/homeassistant/components/mastodon/services.yaml @@ -9,6 +9,7 @@ post: required: true selector: text: + multiline: true visibility: selector: select: diff --git a/tests/components/mastodon/test_services.py b/tests/components/mastodon/test_services.py index 239084e9786..01f3bf8c96e 100644 --- a/tests/components/mastodon/test_services.py +++ b/tests/components/mastodon/test_services.py @@ -118,9 +118,12 @@ from tests.common import MockConfigEntry }, ), ( - {ATTR_STATUS: "test toot", ATTR_IDEMPOTENCY_KEY: "post_once_only"}, { - "status": "test toot", + ATTR_STATUS: "test toot\nwith idempotency", + ATTR_IDEMPOTENCY_KEY: "post_once_only", + }, + { + "status": "test toot\nwith idempotency", "idempotency_key": "post_once_only", "language": None, "spoiler_text": None,