Fix device tracker TrackerEntity defaults (#32459)
This commit is contained in:
1 parent
af76a336af
commit
7678d66464
10 files changed
+26
-42
No files matched your search
@@ -0,0 +1,19 @@
|
||||
"""Test Device Tracker config entry things."""
|
||||
from homeassistant.components.device_tracker import config_entry
|
||||
|
||||
|
||||
def test_tracker_entity():
|
||||
"""Test tracker entity."""
|
||||
|
||||
class TestEntry(config_entry.TrackerEntity):
|
||||
"""Mock tracker class."""
|
||||
|
||||
should_poll = False
|
||||
|
||||
instance = TestEntry()
|
||||
|
||||
assert instance.force_update
|
||||
|
||||
instance.should_poll = True
|
||||
|
||||
assert not instance.force_update
|
||||
Reference in new issue
Block a user