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': {},
         }))
Exemple #2
0
 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': {},
         }))
 def test_if_fails_setup_for_without_entity(self):
     self.assertIsNone(state.if_action(
         self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))
Exemple #4
0
 def test_if_fails_setup_for_without_entity(self):
     self.assertIsNone(
         state.if_action(self.hass, {
             'platform': 'state',
             'state': 'on',
             'for': {
                 'seconds': 5
             },
         }))
Exemple #5
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': {},
             }))
Exemple #6
0
 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': {},
         }))
Exemple #7
0
 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
             },
         }))
Exemple #8
0
 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
             },
         }))