Пример #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
 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
 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
 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
 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
 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
 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
             },
         }))