No problem with that in the UK, but it wouldn’t suit the German bicycle lighting authoritarians. Who would like to impose their will over all EU countries, but fortunately generally get resisted. Solution in search of a problem (and comfy careers and home protectionism to protect, along with dynamo and standlicht systems, ) 
We are pretty relaxed. As long as there is some sort of light, white at the front, red at the back, flashing or continuous, that’s about it. And a compliant pair of reflectors, in case the battery runs flat. We are also supposed to have orange pedal reflectors, but the keen bikies don’t, actually no way to fit them to their trick pedal systems.
Then there are the e-bike regulations here. Unsurprisingly a certain country is trying to dominate and protect their manufacturers, supplying inferior products (but with cheating firmware that gives an illegal performance boost, for just long enough to cream competitors off the line and impress naive buyers), totally locked down, no DIY tampering possible, only an authorised dealer has the kit to interrogate the controller, and re-set any fault conditions. Or just say “warranty voided” And the battery has to talk to the motor and be sure it is legit. before it will even turn on. And vice-versa. Blatant. But hindering development.
Thank you Bosch. And the others.
And give up on your dirty cheating (dieselgate, you made and your people programmed the ECUs for VW), and the rest. Even integrated into vacuum cleaners. Dyson BEATS infuriating EU rules on vacuum cleaners after energy crackdown | UK | News | Express.co.uk
My twin beam MTB headlamps are nearly as good as a set of legal car headlamps, and have a well defined beam. So why shouldn’t I use them, sensibly, on road ?
https://swhs.home.xs4all.nl/fiets/tests/verlichting_analyse/verkeersregels/de_stvzo/index_en.html
Really this is an extreme example of typical DE bureaucracy gone mad, with nobody at the top seeing sense or calling a halt.
Rant off.