mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Enable some more bandit checks (#30857)
* Enable B108 (hardcoded tmp dir), address findings * Enable B602 (subprocess popen with shell), address findings * Enable B604 (start process with shell), address findings * Enable B306 (mktemp), B307 (eval), and B325 (tempnam), no issues to address
This commit is contained in:
@@ -50,7 +50,9 @@ class TestLiteJetLight(unittest.TestCase):
|
||||
self.mock_lj.on_load_deactivated.side_effect = on_load_deactivated
|
||||
|
||||
assert setup.setup_component(
|
||||
self.hass, litejet.DOMAIN, {"litejet": {"port": "/tmp/this_will_be_mocked"}}
|
||||
self.hass,
|
||||
litejet.DOMAIN,
|
||||
{"litejet": {"port": "/dev/serial/by-id/mock-litejet"}},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user