Fix type in DeviceEnvironmentFactory

Change related with https://github.com/allegro/ralph/pull/1044
Due to changes in the model, `DeviceEnvironmentFactory` type must be changed.

This request blocks: https://github.com/allegro/ralph_assets/pull/430