mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Allow multiple recipients for SMTP notify (#7319)
The existing (singular) configuration keyword is kept for compatibility.
This commit is contained in:
committed by
Pascal Vizeli
parent
0298522fd5
commit
89164d0244
@@ -22,7 +22,8 @@ class TestNotifySmtp(unittest.TestCase):
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.mailer = MockSMTP('localhost', 25, 5, 'test@test.com', 1,
|
||||
'testuser', 'testpass', 'testrecip@test.com', 0)
|
||||
'testuser', 'testpass',
|
||||
['recip1@example.com', 'testrecip@test.com'], 0)
|
||||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
""""Stop down everything that was started."""
|
||||
@@ -36,7 +37,7 @@ class TestNotifySmtp(unittest.TestCase):
|
||||
'MIME-Version: 1.0\n'
|
||||
'Content-Transfer-Encoding: 7bit\n'
|
||||
'Subject: Home Assistant\n'
|
||||
'To: testrecip@test.com\n'
|
||||
'To: recip1@example.com,testrecip@test.com\n'
|
||||
'From: test@test.com\n'
|
||||
'X-Mailer: HomeAssistant\n'
|
||||
'Date: [^\n]+\n'
|
||||
|
||||
Reference in New Issue
Block a user