EV-52: charger-less stubs, CHANGELOG, EV-28/EV-51 log rows set the two new lines aside
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -88,7 +88,8 @@ class CarMixin:
|
||||
ok = carmode.allowed_phases(opts)
|
||||
self.car_n = n if n in ok else ok[0]
|
||||
self.car_rev = 0
|
||||
if self.charger.configured(): # EV-52: the mode at the start
|
||||
ch = getattr(self, "charger", None)
|
||||
if ch is not None and ch.configured(): # EV-52: the mode at the start
|
||||
_LOG.info("Car mode is now %s.",
|
||||
carmode.MODE_LABELS[self.car_mode])
|
||||
self.car_writer = carmode.ManualWriter()
|
||||
|
||||
Reference in New Issue
Block a user