• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bcpearce / hass-motion-detection-addon / 21126887229

19 Jan 2026 05:54AM UTC coverage: 17.99% (-32.0%) from 49.971%
21126887229

Pull #26

github

web-flow
Merge c98d1d60e into 0206cb867
Pull Request #26: Additional test coverage

292 of 1865 branches covered (15.66%)

Branch coverage included in aggregate %.

8 of 22 new or added lines in 3 files covered. (36.36%)

827 existing lines in 29 files now uncovered.

347 of 1687 relevant lines covered (20.57%)

28.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/include/Callback/SyncHassHandler.h
1
#pragma once
2

3
#include "Detector/Detector.h"
4

5
#include "Callback/BaseHassHandler.h"
6

7
#include <string>
8
#include <string_view>
9

10
#include <boost/url.hpp>
11

12
namespace callback {
13

14
// A very basic handler for Home Assistant State Updates
15
// This is useful for the final message as there is no requirement to overlap
16
// the operations with video feed at that point.
17
class SyncHassHandler : public BaseHassHandler {
18

19
public:
20
  SyncHassHandler(const boost::url &url, const std::string &token,
21
                  const std::string &entityId);
22
  SyncHassHandler(const SyncHassHandler &) = delete;
23
  SyncHassHandler(SyncHassHandler &&) = delete;
24
  SyncHassHandler &operator=(const SyncHassHandler &) = delete;
25
  SyncHassHandler &operator=(SyncHassHandler &&) = delete;
26

UNCOV
27
  virtual ~SyncHassHandler() noexcept = default;
×
28

29
protected:
30
  void UpdateState_Impl(std::string_view state,
31
                        const json &attributes) override;
32

33
private:
34
  std::vector<char> buf_; // for CURL responses
35
};
36

37
} // namespace callback
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc