For instance, an arrangement of a knuckle (as one form of a hub carrier), a hub bearing, a drive shaft, and a deflector disclosed in Japanese Patent Application Publication No. 2015-071339 is conventionally known. The conventional arrangement is an arrangement in a driving wheel in which the drive shaft is connected to a rotary body of the hub bearing supported by a hub carrier. In this arrangement, the deflector is fixed to the drive shaft. SUMMARY On a driving wheel side, a sensor for detecting a rotation state of a wheel may be fixed to the hub carrier. The hub carrier is disposed in an environment in which foreign matter such as water, sand, or mud is likely to enter an inside of the hub carrier in accordance with traveling of the vehicle especially from an inner side of the vehicle in the left-right direction of the vehicle, i.e., a side opposite to an outer side of the vehicle on which the wheel is connected to the rotary body. Thus, the sensor fixed to the hub carrier is disposed in an environment in which the foreign matter is likely to adhere. The sensor is required to maintain good detection accuracy even in the environment in which the foreign matter is likely to adhere. Thus, the deflector provided for the driving wheel is fixed to the drive shaft that is disposed inner than the hub carrier in the left-right direction of the vehicle, for preventing the foreign matter from adhering to the sensor that is disposed so as to face the hub bearing. Also in a driven wheel that does not include a drive shaft, it is necessary to prevent the foreign matter from adhering to the sensor and to detect the rotation state of the wheel with good detection accuracy. In the driven wheel, however, the deflector cannot be fixed to the drive shaft described above. In a case where the sensor is fixed to the hub carrier in the driven wheel as in the driving wheel, a hub carrier dedicated to the driven wheel may be used. In this case, the dedicated hub carrier is configured such that an accommodation hole portion, in which the hub bearing is accommodated, is closed at one end thereof on the vehicle inner side. Thus, in a case where the dedicated hub carrier is used in the driven wheel, the accommodating hole portion is closed to thereby prevent the foreign matter from adhering to the sensor. In a case where the dedicated hub carrier is not used, a cap for protecting an internal structure of the hub bearing such as an outer ring, rolling balls, and an inner ring may be provided. In this case, at least a detection portion of the sensor is embedded in the cap such that the detection portion enters the inside of the cap. When the cap is thus provided, the sensor is embedded in the cap, so that the foreign matter is prevented from adhering to the sensor. To prevent the foreign matter from adhering to the sensor, specifications of the hub carrier may be different between the driving wheel side and the driven wheel side. When the sensor is fixed to the hub carrier on the driving wheel side and the sensor is fixed to the cap on the driven wheel side, the specifications of the hub carrier and the sensor are different between the driving wheel side and the driven wheel side, and specifications of a wire harness, a connector, etc., connected to the sensor are also different between the driving wheel side and the driven wheel side. That is, it is necessary in the conventional configuration to produce and manage the hub carrier, the sensor, the wire harness, and the connector as different components between the driving wheel side and the driven wheel side, and it is necessary to separately perform different assembly operations between the driving wheel side and the driven wheel side. Thus, there still remains room for improvement in terms of achieving commonality of components while preventing adhesion of the foreign matter to the sensor. Accordingly, an aspect of the present disclosure is to provide a vehicle wheel support device capable of achieving commonality of components. In one aspect of the present disclosure, a vehicle wheel support device includes: a hub bearing that rotatably supports a wheel of a vehicle; a hub carrier that supports the hub bearing; a sensor that detects a rotation state of the wheel; and a cap which prevents entry of the foreign matter into the hub bearing and with which is formed integrally a deflector member including at least part of a deflector that isolates the sensor from the foreign matter. According to the vehicle wheel support device of the present disclosure, the deflector can be formed integrally with the cap. That is, the cap has the function of the deflector. Thus, even in the driven wheel that does not include the drive shaft, the cap having the function of the deflector can isolate the detection portion of the sensor from the foreign matter. Therefore, the cap prevents the foreign matter from adhering to the sensor. Since the cap having the function of the deflector prevents the foreign matter from adhering to the sensor, the sensor can be fixed to the hub carrier also in the driven wheel. According to the vehicle wheel support device of the present disclosure, the hub carrier, the sensor, the wire harness, and the connector can be used in common between the driving wheel and the driven wheel.