Summary
The user is seeking guidance on how to properly mock and unit test a file sensor. They reference a specific GitHub link for additional context and mention that if there is a network call in sensor.poke()
, it can be mocked as well. The user has successfully mocked FileSensor
using @patch
and set its return value to mock_file_sensor.poke = True
, indicating that it is currently working as expected. They express gratitude for a quick reply.