コード例 #1
0
 def test_if_fails_setup_for_without_time(self):
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'entity_id': 'test.entity',
             'state': 'on',
             'for': {},
         }))
コード例 #2
0
ファイル: test_state.py プロジェクト: Jamezz/home-assistant
 def test_if_fails_setup_for_without_time(self):
     """Test for setup failure if no time is provided."""
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'entity_id': 'test.entity',
             'state': 'on',
             'for': {},
         }))
コード例 #3
0
 def test_if_fails_setup_for_without_entity(self):
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))
コード例 #4
0
ファイル: test_state.py プロジェクト: x86Labs/home-assistant
 def test_if_fails_setup_for_without_entity(self):
     self.assertIsNone(
         state.if_action(self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))
コード例 #5
0
ファイル: test_state.py プロジェクト: x86Labs/home-assistant
 def test_if_fails_setup_for_without_time(self):
     self.assertIsNone(
         state.if_action(
             self.hass, {
                 'platform': 'state',
                 'entity_id': 'test.entity',
                 'state': 'on',
                 'for': {},
             }))
コード例 #6
0
ファイル: test_state.py プロジェクト: ycaihua/home-assistant
 def test_if_fails_setup_for_without_time(self):
     """Test for setup failure if no time is provided."""
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'entity_id': 'test.entity',
             'state': 'on',
             'for': {},
         }))
コード例 #7
0
ファイル: test_state.py プロジェクト: Jamezz/home-assistant
 def test_if_fails_setup_for_without_entity(self):
     """Test for setup failure if no entity is provided."""
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))
コード例 #8
0
ファイル: test_state.py プロジェクト: ycaihua/home-assistant
 def test_if_fails_setup_for_without_entity(self):
     """Test for setup failure if no entity is provided."""
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))